self-documenting 0 Test_right_margin
[?]
Sep 7, 2022, 5:16 PM
2WGHUWE6DWRNUD7AJNLGT4I6PZ2EIVDQCZ7V7V7WSYPBRPYUUDUQCDependencies
- [2]
KKMFQDR4editing source code from within the app - [3]
CNCYMM6Amake test initializations a little more obvious - [4]
OI4FPFINsupport drawings in the source editor - [5]
APYPFFS3call edit rather than App callbacks in tests - [6]
V7LATJC7bugfix: resize - [7]
H6QZ7GRRmore precise name - [8]
CE4LZV4Tdrop last couple of manual tests - [*]
2L5MEZV3experiment: new edit namespace
Change contents
- edit in source_tests.lua at line 10
check_eq(Editor_state.right, 300 - Test_margin_right, 'F - test_resize_window/baseline/left_margin') - edit in source_tests.lua at line 12
-- ugly; resize switches to real, non-test margins - replacement in source_tests.lua at line 15
check_eq(Editor_state.left, Test_margin_left, 'F - test_resize_window/left_margin')-- ugly; right margin switches from 0 after resizecheck_eq(Editor_state.left, Margin_left, 'F - test_resize_window/left_margin') - replacement in source_tests.lua at line 17
check_eq(Editor_state.width, 200-Test_margin_left-Margin_right, 'F - test_resize_window/drawing_width')check_eq(Editor_state.width, 200-Margin_left-Margin_right, 'F - test_resize_window/drawing_width') - edit in source_edit.lua at line 518
-- Insulate tests from some key globals so I don't have to change the vast-- majority of tests when they're modified for the real app. - edit in source_edit.lua at line 521
Test_margin_right = 0 - replacement in source_edit.lua at line 528
App.screen.width, -- right margin = 0App.screen.width - Test_margin_right, - edit in run_tests.lua at line 9
check_eq(Editor_state.right, 300 - Test_margin_right, 'F - test_resize_window/baseline/left_margin') - edit in run_tests.lua at line 11
-- ugly; resize switches to real, non-test margins - replacement in run_tests.lua at line 14
check_eq(Editor_state.left, Test_margin_left, 'F - test_resize_window/left_margin')-- ugly; right margin switches from 0 after resizecheck_eq(Editor_state.left, Margin_left, 'F - test_resize_window/left_margin') - replacement in run_tests.lua at line 16
check_eq(Editor_state.width, 200-Test_margin_left-Margin_right, 'F - test_resize_window/drawing_width')check_eq(Editor_state.width, 200-Margin_left-Margin_right, 'F - test_resize_window/drawing_width') - edit in edit.lua at line 468
-- Insulate tests from some key globals so I don't have to change the vast-- majority of tests when they're modified for the real app. - edit in edit.lua at line 471
Test_margin_right = 0 - replacement in edit.lua at line 478
App.screen.width, -- right margin = 0App.screen.width - Test_margin_right,