(name)
| 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) { |
no test coverage detected