fix all tests in LÖVE v12
[?]
Oct 10, 2023, 3:25 AM
KVJTEXMSVG43EWSARA5O52EV2D4QTQZGO5RNSPVBHYZSWUMNI25QCDependencies
- [2]
I64IPGJXavoid saving fragments in lines - [3]
GZ5WULJVswitch source side to new screen-line-based render - [4]
CVSRHMJ2experiment: slightly adaptive scrolling - [5]
APYPFFS3call edit rather than App callbacks in tests - [6]
UHB4GARJleft/right margin -> left/right coordinates - [7]
KKMFQDR4editing source code from within the app - [8]
KMSL74GAsupport selections in the source editor - [9]
LAW2O3NWextract variable Margin_left - [10]
LF7BWEG4group all editor globals - [11]
JLU2RMC4allow Text.nearest_pos_less_than to return 0 - [12]
ORRSP7FVdeduce test names on failures - [13]
LXTTOB33extract a couple of files
Change contents
- replacement in text_tests.lua at line 1119
App.screen.check(y, 'mn', 'screen:3')if Version == '12.0' then-- HACK: Maybe v12.0 uses a different font? Strange that it only causes-- issues in a couple of places.-- We'll need to rethink our tests if issues like this start to multiply.App.screen.check(y, 'mno ', 'screen:3')elseApp.screen.check(y, 'mn', 'screen:3')end - replacement in text_tests.lua at line 1836
edit.run_after_mouse_release(Editor_state, Editor_state.left+8,Editor_state.top+Editor_state.line_height*2+5, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+2,Editor_state.top+Editor_state.line_height*2+5, 1) - replacement in text_tests.lua at line 1839
check_eq(Editor_state.cursor1.pos, 26, 'cursor:pos')check_eq(Editor_state.cursor1.pos, 25, 'cursor:pos') - replacement in source_text_tests.lua at line 1089
App.screen.check(y, 'mn', 'screen:3')if Version == '12.0' then-- HACK: Maybe v12.0 uses a different font? Strange that it only causes-- issues in a couple of places.-- We'll need to rethink our tests if issues like this start to multiply.App.screen.check(y, 'mno ', 'screen:3')elseApp.screen.check(y, 'mn', 'screen:3')end - replacement in source_text_tests.lua at line 1806
edit.run_after_mouse_release(Editor_state, Editor_state.left+8,Editor_state.top+Editor_state.line_height*2+5, 1)edit.run_after_mouse_release(Editor_state, Editor_state.left+2,Editor_state.top+Editor_state.line_height*2+5, 1) - replacement in source_text_tests.lua at line 1809
check_eq(Editor_state.cursor1.pos, 26, 'cursor:pos')check_eq(Editor_state.cursor1.pos, 25, 'cursor:pos')