Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / nested-blocks-with-text-field.html
blob3dbe7f2eb8243ffef7ad8504966b22290ccf0141
1 <html>
2 <head>
3 <script src="../../resources/dump-as-markup.js"></script>
4 <style>
5 div { text-align: center; }
6 </style>
7 </head>
9 <body contentEditable="true">
10 These demonstrate 11475: the '\n's at the end of the fragment should be unrendered.<br><br>
12 <script id="test">
13 if (window.testRunner)
14 testRunner.dumpEditingCallbacks();
16 var s = window.getSelection();
17 var e = document.body;
19 s.collapse(e, 0);
20 document.execCommand("SelectAll");
21 s.modify("move", "forward", "character");
22 document.execCommand("InsertHTML", false, "<div>This test checks that pasing in a combination of nested blocks where one starts with a text field doesn't crash or fail assertions.</div>\n<div>\n<div>\n<input type='text'> \n<span>x</span>\n</div>\n</div>");
24 e.removeChild(document.getElementById('test'));
25 Markup.dump(e);
27 </script>
28 </body>
29 </html>