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

Function test

lib/web/CodeMirror/test/comment_test.js:4–9  ·  view source on GitHub ↗
(name, mode, run, before, after)

Source from the content-addressed store, hash-verified

2
3(function() {
4 function test(name, mode, run, before, after) {
5 return testCM(name, function(cm) {
6 run(cm);
7 eq(cm.getValue(), after);
8 }, {value: before, mode: mode});
9 }
10
11 var simpleProg = "function foo() {\n return bar;\n}";
12 var inlineBlock = "foo(/* bar */ true);";

Callers 1

comment_test.jsFile · 0.70

Calls 4

testCMFunction · 0.85
eqFunction · 0.85
runFunction · 0.70
getValueMethod · 0.45

Tested by

no test coverage detected