(name, command, initialValue, expectedValue, keys, finalPos)
| 4793 | expr: '%s/(..|$)/<$1>/g', |
| 4794 | noPcreExpr: '%s/\\(..\\|$\\)/<\\1>/g'}); |
| 4795 | function testSubstituteConfirm(name, command, initialValue, expectedValue, keys, finalPos) { |
| 4796 | testVim(name, function(cm, vim, helpers) { |
| 4797 | helpers.doEx(command); |
| 4798 | for (var i = 0; i < keys.length; i++) { |
| 4799 | helpers.doKeys(keys.charAt(i)) |
| 4800 | } |
| 4801 | eq(expectedValue, cm.getValue()); |
| 4802 | helpers.assertCursorAt(finalPos); |
| 4803 | }, { value: initialValue }); |
| 4804 | } |
| 4805 | testSubstituteConfirm('ex_substitute_confirm_emptydoc', |
| 4806 | '%s/x/b/c', '', '', '', makeCursor(0, 0)); |
| 4807 | testSubstituteConfirm('ex_substitute_confirm_nomatch', |
no test coverage detected
searching dependent graphs…