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