blob: 6d83ac34e45c2831c40e4651d1c82ee4b6f3b0fc [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-inline' 'unsafe-eval'">
</head>
<pre>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var id = setTimeout("alert('PASS 1 of 2')", 0);
if (id == 0)
document.write('FAIL: Return value for string (should not be 0): ' + id);
var id = setTimeout(function() {
alert('PASS 2 of 2');
if (window.testRunner)
testRunner.notifyDone();
}, 0);
if (id == 0)
document.write('FAIL: Return value for function (should not be 0): ' + id);
</script>
</pre>
</body>
</html>