diff options
Diffstat (limited to 'tests/positions/positions.qs')
-rw-r--r-- | tests/positions/positions.qs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/positions/positions.qs b/tests/positions/positions.qs new file mode 100644 index 0000000..13d7955 --- /dev/null +++ b/tests/positions/positions.qs @@ -0,0 +1,18 @@ +include("../test.js") + +var editor = editors.openFile("test.cpp") + +editor.gotoLine(1,0) +verifyPosition(1,0, "beginning of file") + +editor.gotoLineEnd() +verifyPosition(1,11, "end of line") + +editor.gotoLineStart() +verifyPosition(1,0, "start of line") + +editor.gotoLineEnd() +editor.gotoBlockEnd() +verifyPosition(5,1, "end of block") + +editor.close() |