summaryrefslogtreecommitdiffstats
path: root/tests/positions/positions.qs
blob: 13d79555ba1aa7e8366206cdaa0f24f379768bfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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()