highlight js identifiers with unicode characters.

fix #148
This commit is contained in:
Fabian Jakobs 2011-07-25 17:32:17 +02:00
commit b837cd547b
5 changed files with 50 additions and 8 deletions

View file

@ -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");