Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / dom / Document / doc-open-while-parsing.html
1 <p>Test for a possible problem related to <a href=\'https://bugs.webkit.org/show_bug.cgi?id=4395\'>bug 4395</a>: 
2 REGRESSION: document.open doesn't clear the document.</p>
3
4 <script>
5   if (window.testRunner)
6       testRunner.dumpAsText();
7
8   document.open();
9   document.write("<p>This line should appear second.</p>");
10   document.close();
11 </script>
12
13 <p>Last line.</p>