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

Function testJumplist

lib/web/CodeMirror/test/vim_test.js:267–277  ·  view source on GitHub ↗
(name, keys, endPos, startPos, dialog)

Source from the content-addressed store, hash-verified

265 'word\n'+
266 'word\n';
267function testJumplist(name, keys, endPos, startPos, dialog) {
268 endPos = makeCursor(endPos[0], endPos[1]);
269 startPos = makeCursor(startPos[0], startPos[1]);
270 testVim(name, function(cm, vim, helpers) {
271 CodeMirror.Vim.resetVimGlobalState_();
272 if(dialog)cm.openDialog = helpers.fakeOpenDialog('word');
273 cm.setCursor(startPos);
274 helpers.doKeys.apply(null, keys);
275 helpers.assertCursorAt(endPos);
276 }, {value: jumplistScene});
277}
278testJumplist('jumplist_H', ['H', '<C-o>'], [5,2], [5,2]);
279testJumplist('jumplist_M', ['M', '<C-o>'], [2,2], [2,2]);
280testJumplist('jumplist_L', ['L', '<C-o>'], [2,2], [2,2]);

Callers 1

vim_test.jsFile · 0.85

Calls 3

makeCursorFunction · 0.85
testVimFunction · 0.85
applyMethod · 0.65

Tested by

no test coverage detected