summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/js/do-while-without-semicolon.html
blob: dec3861d9d2a14ad44adc2837c7bb756626f813d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<p>This page verifies that a statement following a do/while statement will execute
even if a semi-colon does not separate the two. See 
<a href="http://bugs.webkit.org/show_bug.cgi?id=10880">bug 10880</a>.</p>
<p id="console">FAIL: Script following do/while statement did not execute.</p>
<script>
function pass()
{
    document.getElementById("console").innerHTML = "PASS: Script following do/while statement executed.";
}

if (window.testRunner)
    testRunner.dumpAsText();

do{}while(false)pass();
</script>