MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / testMoveEndBidi

Function testMoveEndBidi

lib/web/CodeMirror/test/test.js:2536–2551  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

2534};
2535
2536function testMoveEndBidi(str) {
2537 testCM("move_end_bidi_" + str, function(cm) {
2538 cm.getScrollerElement().style.fontFamily = "monospace";
2539 makeItWrapAfter(cm, Pos(0, 5));
2540
2541 cm.execCommand("goLineStart");
2542 var pos = cm.doc.getCursor();
2543 cm.execCommand("goCharLeft");
2544 eqCursorPos(pos, cm.doc.getCursor());
2545
2546 cm.execCommand("goLineEnd");
2547 pos = cm.doc.getCursor();
2548 cm.execCommand("goColumnRight");
2549 eqCursorPos(pos, cm.doc.getCursor());
2550 }, {value: str, lineWrapping: true})
2551};
2552
2553var bidiTests = [];
2554

Callers 1

test.jsFile · 0.85

Calls 4

testCMFunction · 0.85
makeItWrapAfterFunction · 0.85
eqCursorPosFunction · 0.85
PosFunction · 0.50

Tested by

no test coverage detected