Index: chrome_frame/test/data/multiple_cf_instances_main.html |
diff --git a/chrome_frame/test/data/multiple_cf_instances_main.html b/chrome_frame/test/data/multiple_cf_instances_main.html |
index da6586d7c294526ec7da0840e930229159b93544..3e994bc7015a57afa161af916f1508fe8d4d3829 100644 |
--- a/chrome_frame/test/data/multiple_cf_instances_main.html |
+++ b/chrome_frame/test/data/multiple_cf_instances_main.html |
@@ -1,18 +1,18 @@ |
<html> |
<head> |
<title>Multiple chrome frame instances test</title> |
+<script type="text/javascript" src="chrome_frame_tester_helpers.js"></script> |
<script type="text/javascript"> |
function createSecondChromeFrameInstance() { |
var dummy = document.createElement('span'); |
+ dummy.id = "dummy"; |
document.body.appendChild(dummy); |
- dummy.innerHTML = '<object border="1" width="100%" height ="200px"' + |
- 'classid="clsid:E0A900DF-9611-4446-86BD-4B1D47E7DB2A">' + |
- '<param name="src"' + |
- 'value="multiple_cf_instances_test.html">' + |
- '<embed id="CFPlugin" width="500" height="500"' + |
- 'name="ChromeFrame" type="application/chromeframe"' + |
- 'src="multiple_cf_instances_test.html">' + |
- '</embed></object>'; |
+ insertControl("dummy", |
+ { "src": "multiple_cf_instances_test.html", |
+ "objectAttributes": { "id": null, "border": "1", "width": "100%", |
+ "height": "200px", "codebase": null }, |
+ "embedAttributes": {"id": "CFPlugin", "name": "ChromeFrame" } |
+ }); |
} |
function onLoad() { |
@@ -22,14 +22,15 @@ |
</head> |
<body onload="onLoad();"> |
- <object id="ChromeFrame1" width="500" height="500" |
- classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A"> |
- <param name="src" value="about:blank"> |
- <embed id="ChromeFramePlugin" width="500" height="500" |
- name="ChromeFrame" type="application/chromeframe" |
- src="about:blank"> |
- </embed> |
- </object> |
+ <span id="ChromeFrameSpan"></span> |
+ <script type="text/javascript"> |
+insertControl("ChromeFrameSpan", |
+ { "id": "ChromeFrame1", |
+ "src": "about:blank", |
+ "objectAttributes": { "codebase": null }, |
+ "embedAttributes": {"id": "ChromeFramePlugin", "name": "ChromeFrame"} |
+ }); |
+ </script> |
ChromeFrame multiple widget instances test page. This testcase verifies |
whether multiple chrome frame widget instances can be created on the |
same page. |