summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test/data/navigateurl_absolute_host.html
diff options
context:
space:
mode:
Diffstat (limited to 'chrome_frame/test/data/navigateurl_absolute_host.html')
-rw-r--r--chrome_frame/test/data/navigateurl_absolute_host.html64
1 files changed, 64 insertions, 0 deletions
diff --git a/chrome_frame/test/data/navigateurl_absolute_host.html b/chrome_frame/test/data/navigateurl_absolute_host.html
new file mode 100644
index 0000000..03e1de2
--- /dev/null
+++ b/chrome_frame/test/data/navigateurl_absolute_host.html
@@ -0,0 +1,64 @@
+<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 frame_location = new String(window.location);
+ frame_location = frame_location.replace(
+ /navigateurl_absolute_host.html/, "navigateurl_basic_frame.html");
+ var chromeFrame = GetChromeFrame();
+ chromeFrame.src = frame_location;
+ setTimeout(OnNavigationTimeout, 10000);
+ }
+
+ var navigation_success = 0;
+
+ function OnNavigationFailed(msg) {
+ if (!navigation_success) {
+ 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>