3 testRunner
.dumpEditingCallbacks();
5 <div id=
"explanation">Checks that the text iterator is emitting a space before and after an inline table.
</div>
7 <div id=
"test">hello
<table style=
"display:inline"><tr><td>1</td></tr></table>world
</div>
8 <div id=
"test2">foo
<table style=
"display:inline"><tr><td>2</td></tr></table> bar
</div>
12 function log(message
) {
13 var console
= document
.getElementById("console");
14 var li
= document
.createElement("li");
15 var pre
= document
.createElement("pre");
16 pre
.appendChild(document
.createTextNode(message
));
18 console
.appendChild(li
);
21 var e
= document
.getElementById("test");
22 var e2
= document
.getElementById("test2");
23 var expected
= "hello 1 world\nfoo 2 bar";
24 var actual
= e
.innerText
+ "\n" + e2
.innerText
;
25 if (expected
== actual
)
29 log("Expected \n\"" + expected
+ "\"");
30 log("Received \n\"" + actual
+ "\"");