Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / innerText-inline-table.html
blob00cba29597938ff52ac33c2f731c9b721a4b88dd
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
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>
9 <ul id="console"></ul>
10 <script>
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));
17 li.appendChild(pre);
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)
26 log("Success!");
27 else {
28 log("Failure!");
29 log("Expected \n\"" + expected + "\"");
30 log("Received \n\"" + actual + "\"");
32 </script>