blob: 23180e6f9ed6e2ccb19326803c9e9c8c0c21a19d [file] [log] [blame]
<script>
if (window.testRunner) {
testRunner.dumpAsText()
testRunner.waitUntilDone();
}
function log(msg) {
var elmt = document.createElement("div");
elmt.textContent = msg;
document.body.appendChild(msg);
}
var timer = setInterval(function() {
clearInterval(timer);
setTimeout(function() {
if (window.testRunner)
testRunner.notifyDone();
}, 10);
// This function tries to appendChild to body, but body doesn't exist
// yet, generating an error. This test passes if we don't crash when
// trying to add the error message to the console.
log("PASS");
}, 10);
</script>