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