MCPcopy
hub / github.com/ajaxorg/ace / testSubstituteConfirm

Function testSubstituteConfirm

src/keyboard/vim_test.js:4795–4804  ·  view source on GitHub ↗
(name, command, initialValue, expectedValue, keys, finalPos)

Source from the content-addressed store, hash-verified

4793 expr: '%s/(..|$)/<$1>/g',
4794 noPcreExpr: '%s/\\(..\\|$\\)/<\\1>/g'});
4795function 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}
4805testSubstituteConfirm('ex_substitute_confirm_emptydoc',
4806 '%s/x/b/c', '', '', '', makeCursor(0, 0));
4807testSubstituteConfirm('ex_substitute_confirm_nomatch',

Callers 1

vim_test.jsFile · 0.85

Calls 3

testVimFunction · 0.85
eqFunction · 0.70
getValueMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…