Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / 6609479.html
blobd353f2203e06c8f2f4f151e688548137cf937e10
1 <html>
2 <head>
3 <script>
4 function log(msg)
6 document.getElementById('console').appendChild(document.createTextNode(msg + '\n'));
9 function test()
11 if (window.testRunner)
12 testRunner.dumpAsText();
13 var td = document.getElementById("td");
14 var text = td.firstChild;
15 var s = window.getSelection();
16 s.collapse(text, 3);
17 document.execCommand("InsertNewlineInQuotedContent");
18 var tables = document.getElementsByTagName("table");
19 if (tables.length == 1)
20 log("Test Passed");
21 else
22 log ("Test Failed");
24 </script>
25 </head>
26 <body onload="test()">
27 <p>This tests that inserting a newline inside a table still works and doesn't break the table apart, even when in quoted content.</p>
28 <div contenteditable="true">
29 <blockquote type="cite"><table border="1" id="tb"><tr><td id="td">foobar</td></tr></table></blockquote>
30 </div>
31 <pre id="console"></pre>
32 </body>
33 </html>