4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.waitUntilDone();
11 document
.getElementById("results").innerHTML
+= a
+ "<br>";
16 var plugin
= document
.createElement('embed');
17 plugin
.setAttribute("type", "application/x-webkit-test-netscape");
18 plugin
.setAttribute("onNew", "loadedFirst()");
19 document
.getElementById("plugins").appendChild(plugin
);
24 if (window
.testRunner
)
25 testRunner
.notifyDone();
28 function loadedFirst()
30 log("PASS: first plugin loaded");
31 if (window
.testRunner
&& testRunner
.setPluginsAllowed
)
32 testRunner
.setPluginsAllowed(false);
34 log("This test requires testRunner.setPluginsAllowed, so it be can't run in a browser.");
36 var plugin
= document
.createElement('embed');
37 plugin
.setAttribute("type", "application/x-webkit-test-netscape");
38 plugin
.setAttribute("onNew", "loadedSecond()");
39 document
.getElementById("plugins").appendChild(plugin
);
40 window
.setTimeout(done
, 5);
43 function loadedSecond()
45 log("FAIL: second plugin loaded");
49 <body onload=
"test()">
52 <div id=
"results"></div>