Skip to content
Snippets Groups Projects
Commit e2a278b7 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[tests] Add test for text-unit motion

parent 873fe349
No related branches found
No related tags found
No related merge requests found
......@@ -680,3 +680,18 @@ testCM("rtlMovement", function(cm) {
}
});
});
testCM("movebyTextUnit", function(cm) {
cm.setValue("בְּרֵאשִ\ńéée\n");
cm.execCommand("goLineEnd");
for (var i = 0; i < 4; ++i) cm.execCommand("goCharRight");
eqPos(cm.getCursor(), {line: 0, ch: 0});
cm.execCommand("goCharRight");
eqPos(cm.getCursor(), {line: 1, ch: 0});
cm.execCommand("goCharRight");
cm.execCommand("goCharRight");
eqPos(cm.getCursor(), {line: 1, ch: 3});
cm.execCommand("goCharRight");
cm.execCommand("goCharRight");
eqPos(cm.getCursor(), {line: 1, ch: 6});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment