2 if (window
.testRunner
) {
3 testRunner
.dumpAsText()
4 testRunner
.waitUntilDone();
8 var elmt
= document
.createElement("div");
9 elmt
.textContent
= msg
;
10 document
.body
.appendChild(msg
);
13 var timer
= setInterval(function() {
15 setTimeout(function() {
16 if (window
.testRunner
)
17 testRunner
.notifyDone();
20 // This function tries to appendChild to body, but body doesn't exist
21 // yet, generating an error. This test passes if we don't crash when
22 // trying to add the error message to the console.