about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-06-09 15:48:07 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-06-09 15:48:07 -0700
commitfa5bf1218af8d87193f5d333904708a312ff7471 (patch)
tree585b79de2fcd9b538fbc28c48984c511bf97fb32
parent8f823bf43052be3b9e742534e1c33d8fa9676d13 (diff)
downloadview.love-fa5bf1218af8d87193f5d333904708a312ff7471.tar.gz
move
-rw-r--r--text_tests.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/text_tests.lua b/text_tests.lua
index 097f487..85b301a 100644
--- a/text_tests.lua
+++ b/text_tests.lua
@@ -193,10 +193,10 @@ function test_select_text_using_mouse()
   App.run_after_mousepress(screen_left_margin+8,Margin_top+5, '1')
   -- drag and release somewhere else
   App.run_after_mouserelease(screen_left_margin+20,Margin_top+Line_height+5, '1')
-  check_eq(Cursor1.line, 2, 'F - test_select_text_using_mouse/cursor:line')
-  check_eq(Cursor1.pos, 4, 'F - test_select_text_using_mouse/cursor:pos')
   check_eq(Selection1.line, 1, 'F - test_select_text_using_mouse/selection:line')
   check_eq(Selection1.pos, 2, 'F - test_select_text_using_mouse/selection:pos')
+  check_eq(Cursor1.line, 2, 'F - test_select_text_using_mouse/cursor:line')
+  check_eq(Cursor1.pos, 4, 'F - test_select_text_using_mouse/cursor:pos')
 end
 
 function test_select_text_using_mouse_and_shift()
@@ -218,10 +218,10 @@ function test_select_text_using_mouse_and_shift()
   App.run_after_mousepress(screen_left_margin+20,Margin_top+5, '1')
   App.run_after_mouserelease(screen_left_margin+20,Margin_top+Line_height+5, '1')
   App.keyrelease('lshift')
-  check_eq(Cursor1.line, 2, 'F - test_select_text_using_mouse_and_shift/cursor:line')
-  check_eq(Cursor1.pos, 4, 'F - test_select_text_using_mouse_and_shift/cursor:pos')
   check_eq(Selection1.line, 1, 'F - test_select_text_using_mouse_and_shift/selection:line')
   check_eq(Selection1.pos, 2, 'F - test_select_text_using_mouse_and_shift/selection:pos')
+  check_eq(Cursor1.line, 2, 'F - test_select_text_using_mouse_and_shift/cursor:line')
+  check_eq(Cursor1.pos, 4, 'F - test_select_text_using_mouse_and_shift/cursor:pos')
 end
 
 function test_pagedown()