parent
a15688ce00
commit
b837cd547b
5 changed files with 50 additions and 8 deletions
|
|
@ -144,8 +144,12 @@ module.exports = {
|
|||
},
|
||||
|
||||
"test: moveCursor word left" : function() {
|
||||
var session = new EditSession( ["ab",
|
||||
" Juhu Kinners (abc, 12)", " cde"].join("\n"));
|
||||
var session = new EditSession([
|
||||
"ab",
|
||||
" Juhu Kinners (abc, 12)",
|
||||
" cde"
|
||||
].join("\n"));
|
||||
|
||||
var selection = session.getSelection();
|
||||
|
||||
selection.moveCursorDown();
|
||||
|
|
@ -183,6 +187,18 @@ module.exports = {
|
|||
selection.moveCursorWordLeft();
|
||||
assert.position(selection.getCursor(), 0, 2);
|
||||
},
|
||||
|
||||
"test: moveCursor word left" : function() {
|
||||
var session = new EditSession(" Fuß Füße");
|
||||
|
||||
var selection = session.getSelection();
|
||||
selection.moveCursorTo(0, 9)
|
||||
selection.moveCursorWordLeft();
|
||||
assert.position(selection.getCursor(), 0, 5);
|
||||
|
||||
selection.moveCursorWordLeft();
|
||||
assert.position(selection.getCursor(), 0, 4);
|
||||
},
|
||||
|
||||
"test: select word left if cursor in word" : function() {
|
||||
var session = new EditSession("Juhu Kinners");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue