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

Function testBasic

lib/web/CodeMirror/test/doc_test.js:73–83  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

71 var ie_lt8 = /MSIE [1-7]\b/.test(navigator.userAgent);
72
73 function testBasic(a, b) {
74 eqAll("x", a, b);
75 a.setValue("hey");
76 eqAll("hey", a, b);
77 b.setValue("wow");
78 eqAll("wow", a, b);
79 a.replaceRange("u\nv\nw", Pos(0, 3));
80 b.replaceRange("i", Pos(0, 4));
81 b.replaceRange("j", Pos(2, 1));
82 eqAll("wowui\nv\nwj", a, b);
83 }
84
85 testDoc("basic", "A='x' B<A", testBasic);
86 testDoc("basicSeparate", "A='x' B<~A", testBasic);

Callers

nothing calls this directly

Calls 4

eqAllFunction · 0.85
replaceRangeMethod · 0.80
PosFunction · 0.50
setValueMethod · 0.45

Tested by

no test coverage detected