Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / insert-table-in-paragraph-crash.html
blob5a033afd441301d6154e4b5972ccf82a1c916d13
1 <div id="container">
2 Editable:<div contenteditable="true" id="editable"></div>
3 </div>
4 </div>
5 <script src="../../resources/js-test.js"></script>
6 <script>
7 function $(id) { return document.getElementById(id); }
8 $('editable').focus();
9 var expected = '<table><tbody><tr><td>stats</td></tr></tbody></table>';
10 document.execCommand('InsertHTML', false, '<p>' + expected + '</p>');
11 shouldBeEqualToString('$("editable").innerHTML', expected);
12 if (window.testRunner)
13 $('container').outerHTML = '';
14 </script>
15 </body>