OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script> | |
4 function print(message) | |
5 { | |
6 var paragraph = document.createElement("p"); | |
7 paragraph.appendChild(document.createTextNode(message)); | |
8 document.getElementById("console").appendChild(paragraph); | |
9 } | |
10 | |
11 function test() | |
12 { | |
13 if (window.testRunner) { | |
14 testRunner.dumpAsText(); | |
15 } | |
16 | |
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")); | |
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")); | |
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")); | |
23 print("standalone plugin <embed>: should have a plugin and does " + (documen
t.getElementById('myE5').testCallback ? "" : "not")); | |
24 | |
25 function showPlugin(p) { | |
26 return p.testCallback ? ("[" + p.getAttribute('location') + "]") : "not"
; | |
27 } | |
28 print("plugin <object> with nested plugin <embed> of the same name should ha
ve an <embed> plugin and does " + showPlugin(document.Plugin)); | |
29 print("empty <object> with nested plugin <embed> of the same name should hav
e an <embed> plugin and does " + showPlugin(document.Plugin2)); | |
30 } | |
31 </script> | |
32 </head> | |
33 <body onload="test()"> | |
34 <p>This test checks for a regression against <i>rdar://problem/4214080 document.
embeds: embeds[0].Play() undefined at languageguide.org</i>.</p> | |
35 <p>Each test below states its expected outcome.</p> | |
36 <hr> | |
37 <div id="console"></div> | |
38 | |
39 <OBJECT | |
40 id="myO" | |
41 type="application/x-webkit-test-netscape" | |
42 width = 0 height = 0 | |
43 > | |
44 <PARAM name="src" value="resources/simple_blank.swf"> | |
45 <PARAM name="autostart" value="false"> | |
46 | |
47 <EMBED | |
48 id="myE" | |
49 type="application/x-webkit-test-netscape" | |
50 autostart="false" | |
51 enablejavascript="true" | |
52 width = 0 height = 0 | |
53 > | |
54 </EMBED> | |
55 </OBJECT> | |
56 | |
57 <object id="myO2"> | |
58 <embed | |
59 id="myE2" | |
60 type="application/x-webkit-test-netscape" | |
61 autostart="false" | |
62 enablejavascript="true" | |
63 width = 0 height = 0 | |
64 > | |
65 </object> | |
66 | |
67 <object | |
68 data="resources/apple.gif" | |
69 type="image/gif" | |
70 width = 0 height = 0 | |
71 > | |
72 <embed | |
73 id="myE3" | |
74 type="application/x-webkit-test-netscape" | |
75 autostart="false" | |
76 enablejavascript="true" | |
77 width = 0 height = 0 | |
78 > | |
79 </object> | |
80 | |
81 <object | |
82 data="resources/apple.gif" | |
83 type="image/gif" | |
84 width = 0 height = 0 | |
85 > | |
86 <object> | |
87 <embed | |
88 id="myE4" | |
89 type="application/x-webkit-test-netscape" | |
90 autostart="false" | |
91 enablejavascript="true" | |
92 width = 0 height = 0 | |
93 > | |
94 </object> | |
95 </object> | |
96 | |
97 <embed | |
98 id="myE5" | |
99 type="application/x-webkit-test-netscape" | |
100 autostart="false" | |
101 enablejavascript="true" | |
102 width = 0 height = 0 | |
103 > | |
104 | |
105 <object | |
106 name="Plugin" | |
107 type="application/x-webkit-test-netscape" | |
108 width = 0 height = 0 | |
109 location="outer" | |
110 > | |
111 <param name="src" value="resources/simple_blank.swf"> | |
112 <param name="autostart" value="false"> | |
113 <param name="enablejavascript" value="true"> | |
114 | |
115 <embed | |
116 name="Plugin" | |
117 type="application/x-webkit-test-netscape" | |
118 autostart="false" | |
119 enablejavascript="true" | |
120 width = 0 height = 0 | |
121 location="inner" | |
122 > | |
123 </embed> | |
124 </object> | |
125 | |
126 <object name="Plugin2" location="outer"> | |
127 <embed | |
128 name="Plugin2" | |
129 type="application/x-webkit-test-netscape" | |
130 autostart="false" | |
131 enablejavascript="true" | |
132 width = 0 height = 0 | |
133 location="inner" | |
134 > | |
135 </embed> | |
136 </object> | |
137 | |
138 </body> | |
139 </html> | |
OLD | NEW |