about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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()