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

Function testCM

lib/web/CodeMirror/test/driver.js:26–41  ·  view source on GitHub ↗
(name, run, opts, expectedFail)

Source from the content-addressed store, hash-verified

24}
25var namespace = "";
26function testCM(name, run, opts, expectedFail) {
27 return test(namespace + name, function() {
28 var place = document.getElementById("testground"), cm = window.cm = CodeMirror(place, opts);
29 var successful = false;
30 try {
31 run(cm);
32 successful = true;
33 } finally {
34 if (!successful || verbose) {
35 place.style.visibility = "visible";
36 } else {
37 place.removeChild(cm.getWrapperElement());
38 }
39 }
40 }, expectedFail);
41}
42
43function runTests(callback) {
44 var totalTime = 0;

Callers 14

simFunction · 0.85
emacs_test.jsFile · 0.85
testFunction · 0.85
testFunction · 0.85
scroll_test.jsFile · 0.85
testFunction · 0.85
multi_test.jsFile · 0.85
testFunction · 0.85
test.jsFile · 0.85
testMoveBidiFunction · 0.85
testMoveEndBidiFunction · 0.85
testCoordsWrappedBidiFunction · 0.85

Calls 3

testFunction · 0.70
runFunction · 0.70
CodeMirrorFunction · 0.50

Tested by 4

testFunction · 0.68
testFunction · 0.68
testFunction · 0.68
testFunction · 0.68