mirror of
https://github.com/webodf/WebODF.git
synced 2026-11-30 16:47:58 +01:00
Compile fixes.
This commit is contained in:
@@ -68,7 +68,7 @@ core.CursorTests = function CursorTests(runner) {
|
||||
|
||||
function setupEmptyRootNode() {
|
||||
var root = domDocument.createElementNS(ns, "p"),
|
||||
cursor = new core.Cursor(domDocument);
|
||||
cursor = new core.Cursor(domDocument, "Joe");
|
||||
testarea.appendChild(root);
|
||||
t = { root: root, cursor: cursor };
|
||||
runner.shouldBeNonNull(t, "t.cursor.getSelectedRange()");
|
||||
|
||||
@@ -62,7 +62,7 @@ gui.SelectionMoverTests = function SelectionMoverTests(runner) {
|
||||
testarea.appendChild(p);
|
||||
p.appendChild(text);
|
||||
p.style.width = "5em";// break line after each 'MMMMM'
|
||||
cursor = new core.Cursor(domDocument);
|
||||
cursor = new core.Cursor(domDocument, "Joe");
|
||||
mover = new gui.SelectionMover(cursor, p);
|
||||
t = { doc: domDocument, p: p, mover: mover, cursor: cursor };
|
||||
}
|
||||
@@ -74,7 +74,7 @@ gui.SelectionMoverTests = function SelectionMoverTests(runner) {
|
||||
cursor,
|
||||
node = /**@type{!Element}*/(domDocument.importNode(doc.documentElement, true));
|
||||
testarea.appendChild(node);
|
||||
cursor = new core.Cursor(domDocument);
|
||||
cursor = new core.Cursor(domDocument, "Joe");
|
||||
mover = new gui.SelectionMover(cursor, node);
|
||||
t = { doc: doc, root: node, mover: mover, cursor: cursor };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user