| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |