4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.dumpPermissionClientCallbacks();
11 document
.getElementById("log").innerHTML
+= a
+ "<br>";
16 if (window
.testRunner
&& testRunner
.setScriptsAllowed
)
17 testRunner
.setScriptsAllowed(false);
19 log("This test requires testRunner.setScriptsAllowed, so it be can't run in a browser.");
21 // Try to load an external script.
22 var script
= document
.createElement('script');
23 script
.src
= "resources/script.js";
24 document
.getElementById("script").appendChild(script
);
28 <body onload=
"test()">
29 <div id=
"script"></div>