OLD | NEW |
1 <html> | 1 <html> |
2 <script> | 2 <script> |
3 | 3 |
4 var callbackCount = 0; | 4 var callbackCount = 0; |
5 | 5 |
6 function npapiCallback(x) { | 6 function npapiCallback(x) { |
7 callbackCount++; | 7 callbackCount++; |
8 } | 8 } |
9 | 9 |
10 function runTest() | 10 function runTest() |
11 { | 11 { |
12 if (window.testRunner) | 12 if (window.testRunner) |
13 testRunner.dumpAsText(); | 13 testRunner.dumpAsText(); |
14 | 14 |
15 var successCount = 0; | 15 var successCount = 0; |
16 var plugin = document.getElementById("testPlugin"); | 16 var plugin = document.getElementById("testPlugin"); |
17 plugin.logDestroy = true; | |
18 | 17 |
19 var testObject = plugin.testObject; | 18 var testObject = plugin.testObject; |
20 plugin.testPassTestObject("npapiCallback", testObject); | 19 plugin.testPassTestObject("npapiCallback", testObject); |
21 var testObject2 = testObject.testObject; | 20 var testObject2 = testObject.testObject; |
22 plugin.testPassTestObject("npapiCallback", testObject2); | 21 plugin.testPassTestObject("npapiCallback", testObject2); |
23 var testObject3 = testObject2.testObject; | 22 var testObject3 = testObject2.testObject; |
24 plugin.testPassTestObject("npapiCallback", testObject3); | 23 plugin.testPassTestObject("npapiCallback", testObject3); |
25 | 24 |
26 if (callbackCount == 3) | 25 if (callbackCount == 3) |
27 successCount++; | 26 successCount++; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 67 |
69 Example: | 68 Example: |
70 plugin | 69 plugin |
71 ------- (Creates) ------ Object1 | 70 ------- (Creates) ------ Object1 |
72 ------- (Creates) ------ Object2 | 71 ------- (Creates) ------ Object2 |
73 | 72 |
74 It is important that both Object1 and Object2 cleanup as a result of | 73 It is important that both Object1 and Object2 cleanup as a result of |
75 cleaning up the plugin. | 74 cleaning up the plugin. |
76 | 75 |
77 <div id="result">FAILURE</div> | 76 <div id="result">FAILURE</div> |
78 <embed id="testPlugin" type="application/x-webkit-test-netscape" width="200" hei
ght="200"></embed> | 77 <embed id="testPlugin" type="application/x-blink-deprecated-test-plugin" width="
200" height="200"></embed> |
79 </body> | 78 </body> |
80 </html> | 79 </html> |
OLD | NEW |