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

Function assertCursorAtFn

lib/web/CodeMirror/test/vim_test.js:188–198  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

186 }
187 }
188 function assertCursorAtFn(cm) {
189 return function(line, ch) {
190 var pos;
191 if (ch == null && typeof line.line == 'number') {
192 pos = line;
193 } else {
194 pos = makeCursor(line, ch);
195 }
196 eqCursorPos(cm.getCursor(), pos);
197 }
198 }
199 function fakeOpenDialog(result) {
200 return function(text, callback) {
201 return callback(result);

Callers 1

testVimFunction · 0.85

Calls 2

makeCursorFunction · 0.85
eqCursorPosFunction · 0.85

Tested by

no test coverage detected