OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title>Multiple chrome frame instances test</title> | 3 <title>Multiple chrome frame instances test</title> |
| 4 <script type="text/javascript" src="chrome_frame_tester_helpers.js"></script> |
4 <script type="text/javascript"> | 5 <script type="text/javascript"> |
5 function createSecondChromeFrameInstance() { | 6 function createSecondChromeFrameInstance() { |
6 var dummy = document.createElement('span'); | 7 var dummy = document.createElement('span'); |
| 8 dummy.id = "dummy"; |
7 document.body.appendChild(dummy); | 9 document.body.appendChild(dummy); |
8 dummy.innerHTML = '<object border="1" width="100%" height ="200px"' + | 10 insertControl("dummy", |
| 11 '<object border="1" width="100%" height ="200px"' + |
9 'classid="clsid:E0A900DF-9611-4446-86BD-4B1D47E7DB2A">' + | 12 'classid="clsid:E0A900DF-9611-4446-86BD-4B1D47E7DB2A">' + |
10 '<param name="src"' + | 13 '<param name="src"' + |
11 'value="multiple_cf_instances_test.html">' + | 14 'value="multiple_cf_instances_test.html">' + |
12 '<embed id="CFPlugin" width="500" height="500"' + | 15 '<embed id="CFPlugin" width="500" height="500"' + |
13 'name="ChromeFrame" type="application/chromeframe"' + | 16 'name="ChromeFrame" type="application/chromeframe"' + |
14 'src="multiple_cf_instances_test.html">' + | 17 'src="multiple_cf_instances_test.html">' + |
15 '</embed></object>'; | 18 '</embed></object>'); |
16 } | 19 } |
17 | 20 |
18 function onLoad() { | 21 function onLoad() { |
19 createSecondChromeFrameInstance(); | 22 createSecondChromeFrameInstance(); |
20 } | 23 } |
21 </script> | 24 </script> |
22 </head> | 25 </head> |
23 | 26 |
24 <body onload="onLoad();"> | 27 <body onload="onLoad();"> |
25 <object id="ChromeFrame1" width="500" height="500" | 28 <span id="ChromeFrameSpan"></span> |
26 classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A"> | 29 <script type="text/javascript"> |
27 <param name="src" value="about:blank"> | 30 insertControl("ChromeFrameSpan", |
28 <embed id="ChromeFramePlugin" width="500" height="500" | 31 ' <object id="ChromeFrame1" width="500" height="500"' + |
29 name="ChromeFrame" type="application/chromeframe" | 32 ' classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A">' + |
30 src="about:blank"> | 33 ' <param name="src" value="about:blank">' + |
31 </embed> | 34 ' <embed id="ChromeFramePlugin" width="500" height="500"' + |
32 </object> | 35 ' name="ChromeFrame" type="application/chromeframe"' + |
| 36 ' src="about:blank">' + |
| 37 ' </embed>' + |
| 38 ' </object>'); |
| 39 </script> |
33 ChromeFrame multiple widget instances test page. This testcase verifies | 40 ChromeFrame multiple widget instances test page. This testcase verifies |
34 whether multiple chrome frame widget instances can be created on the | 41 whether multiple chrome frame widget instances can be created on the |
35 same page. | 42 same page. |
36 </body> | 43 </body> |
37 </html> | 44 </html> |
OLD | NEW |