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

Side by Side Diff: LayoutTests/plugins/object-embed-plugin-scripting.html

Issue 61213008: Revert "Finding an <object> element by name only works it has no children other than <param> elemen… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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 <head> 2 <head>
3 <script> 3 <script>
4 function print(message) 4 function print(message)
5 { 5 {
6 var paragraph = document.createElement("p"); 6 var paragraph = document.createElement("p");
7 paragraph.appendChild(document.createTextNode(message)); 7 paragraph.appendChild(document.createTextNode(message));
8 document.getElementById("console").appendChild(paragraph); 8 document.getElementById("console").appendChild(paragraph);
9 } 9 }
10 10
11 function test() 11 function test()
12 { 12 {
13 if (window.testRunner) { 13 if (window.testRunner) {
14 testRunner.dumpAsText(); 14 testRunner.dumpAsText();
15 } 15 }
16 16
17 print("plugin <object> with nested plugin <embed>: should have a plugin and does " + (document.getElementById('myO').testCallback ? "" : "not")); 17 print("plugin <object> with nested plugin <embed>: should have a plugin and does " + (document.getElementById('myO').testCallback ? "" : "not"));
18 print("plugin <embed> netsted in plugin <object>: should have a plugin and d oes " + (document.getElementById('myE').testCallback ? "" : "not")); 18 print("plugin <embed> netsted in plugin <object>: should have a plugin and d oes " + (document.getElementById('myE').testCallback ? "" : "not"));
19 print("empty <object> with nested plugin <embed>: should not have a plugin a nd does " + (document.getElementById('myO2').testCallback ? "" : "not")); 19 print("empty <object> with nested plugin <embed>: should not have a plugin a nd does " + (document.getElementById('myO2').testCallback ? "" : "not"));
20 print("plugin <embed> nested in empty <object>: should have a plugin and doe s " + (document.getElementById('myE2').testCallback ? "" : "not")); 20 print("plugin <embed> nested in empty <object>: should have a plugin and doe s " + (document.getElementById('myE2').testCallback ? "" : "not"));
21 print("plugin <embed> nested in image <object>: should not have a plugin and does " + (document.getElementById('myE3').testCallback ? "" : "not")); 21 print("plugin <embed> nested in image <object>: should not have a plugin and does " + (document.getElementById('myE3').testCallback ? "" : "not"));
22 print("plugin <embed> nested in empty <object> nested in plugin <object>: sh ould not have a plugin and does " + (document.getElementById('myE4').testCallbac k ? "" : "not")); 22 print("plugin <embed> nested in empty <object> nested in plugin <object>: sh ould not have a plugin and does " + (document.getElementById('myE4').testCallbac k ? "" : "not"));
23 print("standalone plugin <embed>: should have a plugin and does " + (documen t.getElementById('myE5').testCallback ? "" : "not")); 23 print("standalone plugin <embed>: should have a plugin and does " + (documen t.getElementById('myE5').testCallback ? "" : "not"));
24 print("plugin <object> with nested plugin <embed> of the same name should no t have a plugin and does " + (document.Plugin.testCallback ? "" : "not")); 24 print("plugin <object> with nested plugin <embed> of the same name should ha ve a plugin and does " + (document.Plugin.testCallback ? "" : "not"));
25 print("empty <object> with nested plugin <embed> of the same name should not have a plugin and does " + (document.Plugin2.testCallback ? "" : "not")); 25 print("empty <object> with nested plugin <embed> of the same name should hav e a plugin and does " + (document.Plugin2.testCallback ? "" : "not"));
26 } 26 }
27 </script> 27 </script>
28 </head> 28 </head>
29 <body onload="test()"> 29 <body onload="test()">
30 <p>This test checks for a regression against <i>rdar://problem/4214080 document. embeds: embeds[0].Play() undefined at languageguide.org</i>.</p> 30 <p>This test checks for a regression against <i>rdar://problem/4214080 document. embeds: embeds[0].Play() undefined at languageguide.org</i>.</p>
31 <p>Each test below states its expected outcome.</p> 31 <p>Each test below states its expected outcome.</p>
32 <hr> 32 <hr>
33 <div id="console"></div> 33 <div id="console"></div>
34 34
35 <OBJECT 35 <OBJECT
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 type="application/x-webkit-test-netscape" 123 type="application/x-webkit-test-netscape"
124 autostart="false" 124 autostart="false"
125 enablejavascript="true" 125 enablejavascript="true"
126 width = 0 height = 0 126 width = 0 height = 0
127 > 127 >
128 </embed> 128 </embed>
129 </object> 129 </object>
130 130
131 </body> 131 </body>
132 </html> 132 </html>
OLDNEW
« no previous file with comments | « LayoutTests/plugins/embed-inside-object.html ('k') | LayoutTests/plugins/object-embed-plugin-scripting-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698