Kartik K. Agaram
eae5c9505c
bugfix: naming points
2023-03-26 09:36:41 -07:00
Kartik K. Agaram
0ae94b0de5
bugfix
2023-03-26 08:19:40 -07:00
Kartik K. Agaram
2a0a770c49
deduce test names on failures
2023-01-20 21:48:49 -08:00
Kartik K. Agaram
2b3e09ca0f
make love event names consistent
...
I want the words to be easy to read, and to use a consistent tense.
update and focus seem more timeless; let's make everything like those.
2022-12-23 18:52:28 -08:00
Kartik K. Agaram
d63178244b
switch one call back to keychord_pressed
...
I don't understand why, but we need to fix production.
2022-12-12 23:31:50 -08:00
Kartik K. Agaram
39ffe7f411
switch a bunch of tests to textinput events
...
textinput is strictly more realistic than keychord_pressed, which
doesn't cause any textinput events. Use it wherever possible.
2022-12-12 23:18:42 -08:00
Kartik K. Agaram
92eccaea5a
bugfix in changing shape mid-stroke
2022-12-12 23:17:02 -08:00
Kartik K. Agaram
0e0f36f8b4
stop tracking wallclock time
...
We only need time differences.
2022-11-03 21:02:31 -07:00
Kartik K. Agaram
48162b9816
have file API operate on state object
2022-07-25 19:56:39 -07:00
Kartik K. Agaram
1937379da3
move drawing.starty into line cache
2022-07-20 17:08:00 -07:00
Kartik K. Agaram
8abd986054
clean up a cross-test leakage
2022-07-19 07:50:53 -07:00
Kartik K. Agaram
29dac6a6ec
separate data structure for each line's cache data
...
I have no idea what the performance implications of this are..
2022-07-17 21:05:01 -07:00
Kartik K. Agaram
f61d4269f5
bring back a set of constants
...
It's starting to sink in that I don't want hard-coded constants inside
objects.
2022-07-16 08:48:02 -07:00
Kartik K. Agaram
51b4efa59a
more decoupling editor tests from App
2022-07-16 08:20:47 -07:00
Kartik K. Agaram
2884f872d8
make test initializations a little more obvious
2022-07-15 22:12:25 -07:00
Kartik K. Agaram
22ad5373c5
a bug I've never run into
...
The previous commit was failing inside a test that I can't reproduce
manually. Perhaps it's something about how often draw/update run in
practice. Anyways, it's definitely uncovered a real issue.
2022-07-13 08:40:04 -07:00
Kartik K. Agaram
3b36093553
left/right margin -> left/right coordinates
...
Editor state initialization now depends on window dimensions, so we have
to more carefully orchestrate startup.
2022-07-12 20:54:50 -07:00
Kartik K. Agaram
92ad99853e
call edit rather than App callbacks in tests
2022-07-12 15:41:17 -07:00
Kartik K. Agaram
81ecca89ff
start passing in Editor_state explicitly
...
In this commit, top-level edit functions:
- edit.draw
- edit.update
- edit.quit
- edit.mouse_pressed
- edit.mouse_released
- edit.textinput
- edit.keychord_pressed
- edit.key_released
2022-07-12 15:33:06 -07:00
Kartik K. Agaram
8bbc1ffe34
group all editor globals
...
We're still accessing them through a global. But we'll change that next.
2022-07-12 15:24:56 -07:00
Kartik K. Agaram
9b49c8da77
start decoupling editor tests from App
2022-07-11 23:18:26 -07:00
Kartik K. Agaram
3422d92a00
bugfix: 'escape' to cancel a stroke
...
This has been broken since commit b544e8c357
on May 17 :/
I'm just undoing that commit, which turns out to be completely
unnecessary. And adding a test.
2022-07-05 11:06:55 -07:00
Kartik K. Agaram
429a42eb1c
right margin
2022-06-30 22:54:34 -07:00
Kartik K. Agaram
8c7bea8f76
rip out notion of Line_width
2022-06-30 19:50:27 -07:00
Kartik K. Agaram
515dad95f9
keep drawings within the line width slider as well
2022-06-22 21:08:17 -07:00
Kartik K. Agaram
26995dd62e
correct commit f3abc2cbf2
...
I can't be trusted to do anything without a test.
This should fix #5 . Please reopen if it doesn't.
2022-06-17 22:53:05 -07:00
Kartik K. Agaram
856c51212a
autosave slightly less aggressively
...
It might reduce wear and tear on disk, and losing 3 seconds of data
doesn't feel catastrophic (short of a C-z rampage).
Thanks to the love2d.org community for the suggestion:
https://love2d.org/forums/viewtopic.php?f=14&t=93173
2022-06-17 15:43:31 -07:00
Kartik K. Agaram
d77bcd8f8c
stop recording points for arcs
...
It was kinda weird that we were recording the start but not the end.
And moving the start point didn't actually affect the arc.
Let's see if we actually ever need it.
2022-06-15 09:57:49 -07:00
Kartik K. Agaram
21bd8281a7
all pending manual tests done!
2022-06-14 22:47:49 -07:00
Kartik K. Agaram
b8d7774138
test: undo moving point
2022-06-14 22:43:59 -07:00
Kartik K. Agaram
1aa2590236
test: undo naming a point
...
Also ensure we autosave.
2022-06-14 22:39:05 -07:00
Kartik K. Agaram
ab6eff4f2f
test: autosave after name/move/delete of point
2022-06-14 22:17:42 -07:00
Kartik K. Agaram
15acc38da9
test: autosave after any shape
2022-06-14 22:06:08 -07:00
Kartik K. Agaram
d077ce7f42
tests: deleting points/shapes
2022-06-14 21:23:39 -07:00
Kartik K. Agaram
93a9dfd364
test: moving a point
...
I found some code in the process that seems unreachable. Some chance of
a regression here..
2022-06-14 21:08:07 -07:00
Kartik K. Agaram
4f9789db41
test: naming a point
2022-06-14 21:07:04 -07:00
Kartik K. Agaram
2b4e14189b
tests for drawing polygons
2022-06-14 14:59:09 -07:00
Kartik K. Agaram
6894acc2bb
more drawing tests
2022-06-14 11:19:38 -07:00
Kartik K. Agaram
dc3b18eb6c
start writing some tests for drawings
2022-06-14 10:50:14 -07:00