diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-06-30 17:44:23 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-06-30 17:44:31 -0700 |
commit | 98fa46bf990352a3451a6a82489dcc61caf6c6a5 (patch) | |
tree | ffa0f6bfe768883a7c64fadcd1c815b56780f5a7 /text_tests.lua | |
parent | d009390cc4fa891d8c6399e12bb83567606156e2 (diff) | |
download | lines.love-98fa46bf990352a3451a6a82489dcc61caf6c6a5.tar.gz |
some redundant calls
Diffstat (limited to 'text_tests.lua')
-rw-r--r-- | text_tests.lua | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/text_tests.lua b/text_tests.lua index af36c82..2a6c45d 100644 --- a/text_tests.lua +++ b/text_tests.lua @@ -178,7 +178,6 @@ function test_click_on_wrapping_line() App.screen.check(y, "I'm ada", 'F - test_click_on_wrapping_line/baseline/screen:2') y = y + Line_height -- click past end of second screen line - App.draw() App.run_after_mouse_click(App.screen.width-2,y-2, 1) -- cursor moves to end of screen line check_eq(Cursor1.line, 1, 'F - test_click_on_wrapping_line/cursor:line') @@ -204,7 +203,6 @@ function test_click_past_end_of_wrapping_line() App.screen.check(y, 'm', 'F - test_click_past_end_of_wrapping_line/baseline/screen:3') y = y + Line_height -- click past the end of it - App.draw() App.run_after_mouse_click(App.screen.width-2,y-2, 1) -- cursor moves to end of line check_eq(Cursor1.pos, 15, 'F - test_click_past_end_of_wrapping_line/cursor') -- one more than the number of UTF-8 code-points @@ -229,7 +227,6 @@ function test_click_on_wrapping_line_containing_non_ascii() App.screen.check(y, 'm', 'F - test_click_on_wrapping_line_containing_non_ascii/baseline/screen:3') y = y + Line_height -- click past the end of it - App.draw() App.run_after_mouse_click(App.screen.width-2,y-2, 1) -- cursor moves to end of line check_eq(Cursor1.pos, 15, 'F - test_click_on_wrapping_line_containing_non_ascii/cursor') -- one more than the number of UTF-8 code-points @@ -251,7 +248,6 @@ function test_click_past_end_of_word_wrapping_line() App.screen.check(y, 'the quick brown fox ', 'F - test_click_past_end_of_word_wrapping_line/baseline/screen:1') y = y + Line_height -- click past the end of the screen line but within Line_width - App.draw() App.run_after_mouse_click(Line_width-2,y-2, 1) -- cursor moves to end of screen line check_eq(Cursor1.pos, 20, 'F - test_click_past_end_of_word_wrapping_line/cursor') |