Permalink
Browse files

Tests for visual mode `o`

  • Loading branch information...
1 parent b10fdf0 commit a57d6d30708aec652ea151f6172c19c972234281 @sourrust sourrust committed Oct 1, 2011
Showing with 20 additions and 0 deletions.
  1. +20 −0 test/ace/visual_mode.coffee
@@ -139,3 +139,23 @@ test 'x, X, and delete with selection', ->
@press 'jvl', @delete
eq @jim.registers['"'], ' r'
+
+test 'visual mode o', ->
+ @adaptor.moveTo 3, 6
+ @press 'vjo'
+ deepEqual @adaptor.position(), [3, 6]
+
+ @press 'o'
+ deepEqual @adaptor.position(), [4, 6]
+
+ @press 'o', @esc
+ deepEqual @adaptor.position(), [3, 6]
+
+ @press 'veo'
+ deepEqual @adaptor.position(), [3, 6]
+
+ @press 'o'
+ deepEqual @adaptor.position(), [3, 10]
+
+ @press 'o', @esc
+ deepEqual @adaptor.position(), [3, 6]

0 comments on commit a57d6d3

Please sign in to comment.