ggaren | 87086d9 | 2007-07-20 02:12:54 +0000 | [diff] [blame] | 1 | <p>This page verifies that a statement following a do/while statement will execute |
| 2 | even if a semi-colon does not separate the two. See |
| 3 | <a href="http://bugs.webkit.org/show_bug.cgi?id=10880">bug 10880</a>.</p> |
| 4 | <p id="console">FAIL: Script following do/while statement did not execute.</p> |
| 5 | <script> |
| 6 | function pass() |
| 7 | { |
| 8 | document.getElementById("console").innerHTML = "PASS: Script following do/while statement executed."; |
| 9 | } |
| 10 | |
rniwa@webkit.org | 03b9c6d | 2012-07-16 01:41:53 +0000 | [diff] [blame] | 11 | if (window.testRunner) |
| 12 | testRunner.dumpAsText(); |
ggaren | 87086d9 | 2007-07-20 02:12:54 +0000 | [diff] [blame] | 13 | |
| 14 | do{}while(false)pass(); |
| 15 | </script> |