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

Function stTest

lib/web/CodeMirror/test/sublime_test.js:7–22  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

5 namespace = "sublime_";
6
7 function stTest(name) {
8 var actions = Array.prototype.slice.call(arguments, 1);
9 testCM(name, function(cm) {
10 for (var i = 0; i < actions.length; i++) {
11 var action = actions[i];
12 if (typeof action == "string" && i == 0)
13 cm.setValue(action);
14 else if (typeof action == "string")
15 cm.execCommand(action);
16 else if (action instanceof Pos)
17 cm.setCursor(action);
18 else
19 action(cm);
20 }
21 });
22 }
23
24 function at(line, ch, msg) {
25 return function(cm) {

Callers 1

sublime_test.jsFile · 0.85

Calls 3

testCMFunction · 0.85
callMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected