summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/parser/xhtml-close-while-parsing.xhtml
blob: ceb308e745d8b0758b71e6012317a02a105fe14d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
    This tests that the XML parser doesn't fail if window.close() is called from a script tag while parsing.
    <script>
    if (window.testRunner) {
        testRunner.dumpAsText();
        testRunner.setCanOpenWindows();
        testRunner.waitUntilDone();
    }
        
    window.open("resources/xhtml-close-while-parsing-target.xhtml");
    </script>
    If you see this text the test has passed.
</body>
</html>