Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / pasteboard / 4631972.html
1 <script>
2 if (window.testRunner)
3      testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This tests pasting a fragment containing an &lt;iframe&gt; after a &lt;div&gt;.  This used to fail on an assertion in moveParagraphContentsToNewBlockIfNecessary.  You should see 'foo' and then an &lt;iframe&gt; below.</p> 
6 <div contenteditable="true" id="test"></div>
7
8 <script>
9 var s = window.getSelection();
10 var e = document.getElementById("test");
11
12 s.collapse(e, 0);
13 document.execCommand("InsertHTML", false, "<div>foo</div><iframe style='border:1px solid black; width:100; height:50;'></iframe>");
14 </script>