|
1 <html> |
|
2 <head> |
|
3 <title>NPN_AsyncCallback Tests</title> |
|
4 <script type="text/javascript" |
|
5 src="/tests/SimpleTest/SimpleTest.js"></script> |
|
6 <script type="text/javascript" src="utils.js"></script> |
|
7 <link rel="stylesheet" type="text/css" |
|
8 href="/tests/SimpleTest/test.css" /> |
|
9 </head> |
|
10 <body onload="runTests()"> |
|
11 <script class="testbody" type="application/javascript"> |
|
12 |
|
13 SimpleTest.waitForExplicitFinish(); |
|
14 setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED); |
|
15 |
|
16 function asyncTestsComplete(result) { |
|
17 ok(result, "asyncCallback tests completed"); |
|
18 SimpleTest.finish(); |
|
19 } |
|
20 |
|
21 function runTests() { |
|
22 var plugin = document.getElementById("plugin1"); |
|
23 plugin.asyncCallbackTest("asyncTestsComplete"); |
|
24 } |
|
25 </script> |
|
26 |
|
27 <p id="display"></p> |
|
28 |
|
29 <embed id="plugin1" type="application/x-test" width="400" height="100"> |
|
30 </embed> |
|
31 |
|
32 </body> |
|
33 </html> |