diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-03-19 11:52:10 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-03-19 11:52:10 -0700 |
commit | dc0ad458c9b18b36e18b3ff6ae85826e534bece1 (patch) | |
tree | d7de723e207618e2d44dd7aefb584a7cceb028af | |
parent | ab09ec638767358e8314ab75593ae5e07df40200 (diff) | |
parent | 0c06c60622c09bed2ff19ea2a836820173387f29 (diff) | |
download | text.love-dc0ad458c9b18b36e18b3ff6ae85826e534bece1.tar.gz |
Merge lines.love
-rw-r--r-- | source_text_tests.lua | 6 | ||||
-rw-r--r-- | text_tests.lua | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/source_text_tests.lua b/source_text_tests.lua index 7a7d71c..9ec7e7f 100644 --- a/source_text_tests.lua +++ b/source_text_tests.lua @@ -369,7 +369,7 @@ function test_draw_word_wrapping_text() end function test_click_on_wrapping_line() - -- display two lines with cursor on one of them + -- display two screen lines with cursor on one of them App.screen.init{width=50, height=80} Editor_state = edit.initialize_test_state() Editor_state.lines = load_array{'abc def ghi jkl mno pqr stu'} @@ -387,7 +387,7 @@ function test_click_on_wrapping_line() end function test_click_on_wrapping_line_takes_margins_into_account() - -- display two lines with cursor on one of them + -- display two screen lines with cursor on one of them App.screen.init{width=100, height=80} Editor_state = edit.initialize_test_state() Editor_state.left = 50 -- occupy only right side of screen @@ -441,7 +441,7 @@ function test_draw_wrapping_text_containing_non_ascii() App.screen.check(y, '’m a', 'screen:3') end -function test_click_on_wrapping_line() +function test_click_past_end_of_screen_line() -- display a wrapping line App.screen.init{width=75, height=80} Editor_state = edit.initialize_test_state() diff --git a/text_tests.lua b/text_tests.lua index 6e6318d..25fda74 100644 --- a/text_tests.lua +++ b/text_tests.lua @@ -343,7 +343,7 @@ function test_draw_word_wrapping_text() end function test_click_on_wrapping_line() - -- display two lines with cursor on one of them + -- display two screen lines with cursor on one of them App.screen.init{width=50, height=80} Editor_state = edit.initialize_test_state() Editor_state.lines = load_array{'abc def ghi jkl mno pqr stu'} @@ -361,7 +361,7 @@ function test_click_on_wrapping_line() end function test_click_on_wrapping_line_takes_margins_into_account() - -- display two lines with cursor on one of them + -- display two screen lines with cursor on one of them App.screen.init{width=100, height=80} Editor_state = edit.initialize_test_state() Editor_state.left = 50 -- occupy only right side of screen @@ -415,7 +415,7 @@ function test_draw_wrapping_text_containing_non_ascii() App.screen.check(y, '’m a', 'screen:3') end -function test_click_on_wrapping_line() +function test_click_past_end_of_screen_line() -- display a wrapping line App.screen.init{width=75, height=80} Editor_state = edit.initialize_test_state() |