Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / parser / document-write-during-load.html
blob8674ed00211892123eb2d705c8fff5852aafe7d1
1 <!DOCTYPE html>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
5 </script>
6 <div id="parent" style="width: 200px; height: 200px;">
7 <iframe id="iframe" seamless src="about:blank"></iframe>
8 </div>
9 <script>
10 window.onload = function () {
11 window.iframe = document.getElementById("iframe");
12 alert("Ready");
13 window.iframe.contentDocument.write("<!DOCTYPE html><html style='width: 100px; height: 100px; background-color: green'></html>");
14 window.iframe.contentDocument.close();
15 alert("PASS");
17 </script>