(name, keys, endPos, startPos, dialog)
| 265 | 'word\n'+ |
| 266 | 'word\n'; |
| 267 | function 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 | } |
| 278 | testJumplist('jumplist_H', ['H', '<C-o>'], [5,2], [5,2]); |
| 279 | testJumplist('jumplist_M', ['M', '<C-o>'], [2,2], [2,2]); |
| 280 | testJumplist('jumplist_L', ['L', '<C-o>'], [2,2], [2,2]); |
no test coverage detected