Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: chrome_frame/test/data/multiple_cf_instances_main.html

Issue 8777002: Chrome Frame test fixes for Vista/IE7. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ToT sync Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
« no previous file with comments | « chrome_frame/test/data/initialize_hidden.html ('k') | chrome_frame/test/data/navigateurl_absolute_host.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698