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

Function addDoc

lib/web/CodeMirror/test/test.js:9–14  ·  view source on GitHub ↗
(cm, width, height)

Source from the content-addressed store, hash-verified

7}
8
9function addDoc(cm, width, height) {
10 var content = [], line = "";
11 for (var i = 0; i < width; ++i) line += "x";
12 for (var i = 0; i < height; ++i) content.push(line);
13 cm.setValue(content.join("\n"));
14}
15
16function byClassName(elt, cls) {
17 if (elt.getElementsByClassName) return elt.getElementsByClassName(cls);

Callers 3

scroll_test.jsFile · 0.85
test.jsFile · 0.85
doc_test.jsFile · 0.85

Calls 2

pushMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected