Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: third_party/WebKit/LayoutTests/plugins/nested-plugin-objects.html

Issue 1814093003: LayoutTests: migrate nested-plugin-objects to ppapi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_linux_plugins_expectations
Patch Set: rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698