test: autosave after name/move/delete of point
[?]
Jun 15, 2022, 5:17 AM
Y4VYNEGFA3RYG5TR75B3FTVU6DITIS3TQDCOOSYSIUG5NBFEYM6QCDependencies
- [2]
YW5324Q3bugfix: cut (C-x) without first selecting anything - [3]
KAUD3YIKtests: deleting points/shapes - [4]
2XLZCWZCbugfix: rectangles and squares are now saved - [5]
CPZGQT72go through and fix similar issues - [6]
DSLD74DKlots more tests - [7]
SVJZZDC3snapshot - no, that's all wrong - [8]
K464QQR4more defensive resize handling - [9]
7CLGG7J2test: autosave after any shape - [10]
GHZMRR33some more manual tests related to drawings - [11]
BYG5CEMVsupport for naming points - [12]
L6XA5EY2test: moving a point - [*]
K2X6G75Zstart writing some tests for drawings - [*]
42LVB4DEtest: naming a point - [*]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing
Change contents
- edit in drawing_tests.lua at line 354
Filename = 'foo' - edit in drawing_tests.lua at line 385
-- change is savedLines = load_from_disk(Filename)local p2 = Lines[1].points[drawing.shapes[1].p2]check_eq(p2.name, 'A', 'F - test_name_point/save') - edit in drawing_tests.lua at line 394
Filename = 'foo' - edit in drawing_tests.lua at line 413
-- line is saved to diskLines = load_from_disk(Filename)local drawing = Lines[1]local p2 = Lines[1].points[drawing.shapes[1].p2]check_eq(p2.x, 35, 'F - test_move_point/save/x')check_eq(p2.y, 36, 'F - test_move_point/save/y')App.draw() - edit in drawing_tests.lua at line 436
-- change is savedLines = load_from_disk(Filename)local p2 = Lines[1].points[drawing.shapes[1].p2]check_eq(p2.x, 26, 'F - test_move_point/save/x')check_eq(p2.y, 44, 'F - test_move_point/save/y') - edit in drawing_tests.lua at line 446
Filename = 'foo' - edit in drawing_tests.lua at line 465
-- deleted points disappear after file is reloadedLines = load_from_disk(Filename)check_eq(#Lines[1].shapes, 0, 'F - test_delete_lines_at_point/save') - edit in Manual_tests.md at line 15
persistence:select a point and name it, quit, restart. Name is still visible.