Merge upstream into main
[?]
Jul 16, 2022, 5:16 AM
7YVCOPLE6P3BEPJYHYD4Q7OHUNLOHEIFL3JCVYNRBE75DLGGUWHACDependencies
- [2]
X7IHIK6NMerge upstream into main - [3]
CNCYMM6Amake test initializations a little more obvious - [4]
XX7G2FFJintermingle freehand line drawings with text - [5]
D2GCFTTTclean up repl functionality - [6]
3QNOKBFMbeginnings of a test harness - [7]
6LJZN727handle chords - [8]
RSZD5A7Gforgot to add json.lua - [9]
OWK3U6VDtests for drawing polygons - [10]
66X36NZNa little more prose describing manual_tests - [11]
V366JSXAvideos - [12]
7CEOB56DMerge upstream into main - [13]
W7JMT5V2rip out most support for polygons - [14]
7M5PGWKUdrop last couple of manual tests - [15]
TVCPXAAUrename - [16]
TLOAPLBJadd a license - [17]
UHB4GARJleft/right margin -> left/right coordinates - [18]
YIQYNVD2rip out the line-width slider - [19]
LNUHQOGHstart passing in Editor_state explicitly - [20]
27DROQW2Merge upstream into main - [21]
K2X6G75Zstart writing some tests for drawings - [22]
73OCE2MCafter much struggle, a brute-force undo - [23]
DDXXXXBRnew mode for polygons - [24]
BPWFKBXTnew test: dragging and dropping a file on lines.love - [25]
CRYGI3LRmore drawing tests - [26]
BLWAYPKVextract a module - [27]
M6TH7VSZrip out notion of Line_width - [28]
5DOTWNVMright margin - [29]
2L5MEZV3experiment: new edit namespace - [30]
VHQCNMARseveral more modules - [31]
R5QXEHUIsomebody stop me - [32]
T4FRZSYLdelete an ancient, unused file - [33]
LXTTOB33extract a couple of files - [34]
4YDBYBA4clean up memory leak experiments - [35]
OTIBCAUJlove2d scaffold - [36]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [37]
FS2ITYYHrecord a known issue - [38]
AVTNUQYRbasic test-enabled framework - [39]
KAUD3YIKtests: deleting points/shapes - [40]
BULPIBEGbeginnings of a module for the text editor - [41]
42LVB4DEtest: naming a point - [42]
WDMPH4ANdrop support for squares - [43]
CE4LZV4Tdrop last couple of manual tests - [44]
VUVH2XLFMerge upstream into main - [45]
OEUU62GMMerge upstream into main - [46]
2JLVAYHBstart decoupling editor tests from App - [47]
OGUV4HSAremove some memory leaks from rendered fragments - [48]
LF7BWEG4group all editor globals - [49]
V7LATJC7bugfix: resize - [50]
5BJCYYHNconvert videos to gif so they render inline on GitHub - [51]
VXORMHMEdelete experimental REPL
Change contents
- file deletion: main_tests.lua main_tests.lua
check_eq(Editor_state.width, 200-Test_margin_left-Margin_right, 'F - test_resize_window/drawing_width')-- TODO: how to make assertions about when App.update got past the early exit?endcheck_eq(Editor_state.left, Test_margin_left, 'F - test_resize_window/left_margin')-- ugly; right margin switches from 0 after resizecheck_eq(Editor_state.right, 200-Margin_right, 'F - test_resize_window/right_margin')check_eq(Editor_state.left, Test_margin_left, 'F - test_resize_window/baseline/left_margin')App.resize(200, 400)check_eq(App.screen.width, 200, 'F - test_resize_window/width')check_eq(App.screen.height, 400, 'F - test_resize_window/height')Editor_state = edit.initialize_test_state()Editor_state.filename = 'foo' - replacement in main_tests.lua at line 4
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right marginEditor_state = edit.initialize_test_state() - replacement in main_tests.lua at line 8
check_eq(Editor_state.left, Margin_left, 'F - test_resize_window/baseline/left_margin')check_eq(Editor_state.left, Test_margin_left, 'F - test_resize_window/baseline/left_margin') - replacement in main_tests.lua at line 12
check_eq(Editor_state.left, Margin_left, 'F - test_resize_window/left_margin')check_eq(Editor_state.left, Test_margin_left, 'F - test_resize_window/left_margin')-- ugly; right margin switches from 0 after resize - replacement in main_tests.lua at line 15
check_eq(Editor_state.width, 200-Margin_right-Margin_left, 'F - test_resize_window/drawing_width')check_eq(Editor_state.width, 200-Test_margin_left-Margin_right, 'F - test_resize_window/drawing_width') - edit in drawing_tests.lua at line 226[4.1415]→[4.3993:3993](∅→∅),[4.1415]→[4.3993:3993](∅→∅),[4.3993]→[4.27367:27564](∅→∅),[4.847]→[4.27367:27564](∅→∅),[4.847]→[4.27367:27564](∅→∅)
App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin - resurrect zombie in drawing_tests.lua at line 226
App.screen.init{width=Test_margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_test_state() - resolve order conflict in drawing_tests.lua at line 226
- resurrect zombie in drawing_tests.lua at line 228[3.6937]→[4.112971:113028](∅→∅),[4.27564]→[4.112971:113028](∅→∅),[4.112971]→[4.112971:113028](∅→∅),[4.27564]→[4.112971:113028](∅→∅)
Editor_state.lines = load_array{'```lines', '```', ''} - edit in drawing_tests.lua at line 329
App.screen.init{width=Test_margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_test_state() - edit in drawing_tests.lua at line 507[4.2844]→[3.8098:8242](∅→∅),[4.2844]→[3.8098:8242](∅→∅),[4.2844]→[3.8098:8242](∅→∅),[4.4357]→[3.8243:8387](∅→∅),[4.4357]→[3.8243:8387](∅→∅),[4.4357]→[3.8243:8387](∅→∅)
App.screen.init{width=Test_margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_test_state()App.screen.init{width=Test_margin_left+256, height=300} -- drawing coordinates 1:1 with pixelsEditor_state = edit.initialize_test_state()