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

Function at

lib/web/CodeMirror/test/sublime_test.js:24–30  ·  view source on GitHub ↗
(line, ch, msg)

Source from the content-addressed store, hash-verified

22 }
23
24 function at(line, ch, msg) {
25 return function(cm) {
26 eq(cm.listSelections().length, 1);
27 eqCursorPos(cm.getCursor("head"), Pos(line, ch), msg);
28 eqCursorPos(cm.getCursor("anchor"), Pos(line, ch), msg);
29 };
30 }
31
32 function val(content, msg) {
33 return function(cm) { eq(cm.getValue(), content, msg); };

Callers 1

sublime_test.jsFile · 0.70

Calls 3

eqFunction · 0.85
eqCursorPosFunction · 0.85
PosFunction · 0.50

Tested by

no test coverage detected