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

Side by Side Diff: chrome_frame/test/data/chrome_frame_tester_helpers.js

Issue 8777002: Chrome Frame test fixes for Vista/IE7. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: whitespace fix 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // 1 //
2 // This script provides some mechanics for testing ChromeFrame 2 // This script provides some mechanics for testing ChromeFrame
3 // 3 //
4 function onSuccess(name, id) { 4 function onSuccess(name, id) {
5 appendStatus("Success reported!"); 5 appendStatus("Success reported!");
6 onFinished(name, id, "OK"); 6 onFinished(name, id, "OK");
7 } 7 }
8 8
9 function onFailure(name, id, status) { 9 function onFailure(name, id, status) {
10 appendStatus("Failure reported: " + status); 10 appendStatus("Failure reported: " + status);
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 url += window.location.protocol + "//" + window.location.host; 183 url += window.location.protocol + "//" + window.location.host;
184 if (path.lastIndexOf("/") > 0) { 184 if (path.lastIndexOf("/") > 0) {
185 url += path.substring(0, path.lastIndexOf("/")) + "/" + pageName; 185 url += path.substring(0, path.lastIndexOf("/")) + "/" + pageName;
186 } else { 186 } else {
187 url += "/" + pageName; 187 url += "/" + pageName;
188 } 188 }
189 url += ((queryString == "") ? "" : "?" + queryString); 189 url += ((queryString == "") ? "" : "?" + queryString);
190 return url; 190 return url;
191 } 191 }
192
193 // Write the text for the Chrome Frame ActiveX control into an element.
194 // This works around a "feature" of IE versions released between April, 2006
195 // and April, 2008 that required the user to click on an ActiveX control to
196 // "activate" it. See http://msdn.microsoft.com/en-us/library/ms537508.aspx.
197 function insertControl(elementId, innerHTML) {
198 var e = document.getElementById(elementId);
199 e.innerHTML = innerHTML;
robertshield 2011/12/02 22:05:02 It seems at a glance that there's a fair amount of
200 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698