(name, keys, endPos, startPos)
| 321 | } |
| 322 | |
| 323 | function testMotionWithFolding(name, keys, endPos, startPos) { |
| 324 | testVim(name, function (cm, vim, helpers) { |
| 325 | cm.foldCode(startPos); |
| 326 | cm.foldCode(endPos); |
| 327 | cm.setCursor(startPos); |
| 328 | helpers.doKeys(keys); |
| 329 | helpers.assertCursorAt(endPos) |
| 330 | }) |
| 331 | } |
| 332 | |
| 333 | function makeCursor(line, ch) { |
| 334 | return new Pos(line, ch); |