5 testRunner
.dumpEditingCallbacks();
11 var li
= document
.createElement("li");
12 var pre
= document
.createElement("pre");
13 pre
.appendChild(document
.createTextNode(str
));
15 var console
= document
.getElementById("console");
16 console
.appendChild(li
);
20 var elem
= document
.getElementById("test");
21 var sel
= window
.getSelection();
23 if (window
.testRunner
)
24 window
.testRunner
.dumpAsText();
27 sel
.setBaseAndExtent(elem
, 0, elem
, 1);
28 var range
= sel
.getRangeAt(0);
30 log(range
.startContainer
);
31 log(range
.endContainer
);
38 <body onload=
"runTest();">
39 <p>This tests that Selection::getRangeAt(int) returns a valid Range object.
</p>
40 <div id=
"test" style=
"border:1px solid black; padding:1em;">hello
</div>
41 <ul id=
"console"></ul>