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

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

Issue 218019: Initial import of the Chrome Frame codebase. Integration in chrome.gyp coming... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 3 months 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/navigateurl_relative_host.html
===================================================================
--- chrome_frame/test/data/navigateurl_relative_host.html (revision 0)
+++ chrome_frame/test/data/navigateurl_relative_host.html (revision 0)
@@ -0,0 +1,60 @@
+<html>
+ <!-- This page is meant to load inside the host browser like IE/FF -->
+ <head>
+ <script type="text/javascript" src="chrome_frame_tester_helpers.js">
+ </script>
+ <script type="text/javascript">
+ function onLoad() {
+ var chromeFrame = GetChromeFrame();
+ chromeFrame.onloaderror = OnNavigationFailed;
+ setTimeout(NavigateToURL, 100);
+ }
+
+ function NavigateToURL() {
+ var chromeFrame = GetChromeFrame();
+ chromeFrame.src = "navigateurl_basic_frame.html";
+ setTimeout(OnNavigationTimeout, 10000);
+ }
+
+ var navigation_complete = 0;
+
+ function OnNavigationFailed(msg) {
+ if (!navigation_complete) {
+ onFailure("NavigateURL", 1, 'ChromeFrame Navigation failed: ' + msg);
+ }
+ }
+
+ function OnNavigationTimeout() {
+ OnNavigationFailed('TIMEOUT');
+ }
+
+ function OnChromeFrameLoaded() {
+ navigation_success = 1;
+ onSuccess("NavigateURL", 1);
+ }
+
+ function GetChromeFrame() {
+ return window.document.ChromeFrame;
+ }
+ </script>
+ </head>
+
+ <body onload="onLoad();">
+ <div id="statusPanel" style="border: 1px solid red; width: 100%">
+ Test running....
+ </div>
+ <object id="ChromeFrame" width="500" height="500"
+ codebase="http://www.google.com"
+ classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A">
+ <param name="onload" value="return OnChromeFrameLoaded();">
+ <embed id="ChromeFramePlugin" width="500" height="500"
+ name="ChromeFrame" onload="return OnChromeFrameLoaded();"
+ type="application/chromeframe">
+ </embed>
+ </OBJECT>
+ <br />
+ <br />
+
+ <p>Tests ChromeFrame Navigation</p>
+ </body>
+</html>
« no previous file with comments | « chrome_frame/test/data/navigateurl_basic_frame.html ('k') | chrome_frame/test/data/persistent_cookie_test_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698