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

Side by Side Diff: chrome_frame/test/data/navigateurl_absolute_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, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <!-- This page is meant to load inside the host browser like IE/FF -->
3 <head>
4 <script type="text/javascript" src="chrome_frame_tester_helpers.js">
5 </script>
6 <script type="text/javascript">
7 function onLoad() {
8 var chromeFrame = GetChromeFrame();
9 chromeFrame.onloaderror = OnNavigationFailed;
10 setTimeout(NavigateToURL, 100);
11 }
12
13 function NavigateToURL() {
14 var frame_location = new String(window.location);
15 frame_location = frame_location.replace(
16 /navigateurl_absolute_host.html/, "navigateurl_basic_frame.html");
17 var chromeFrame = GetChromeFrame();
18 chromeFrame.src = frame_location;
19 setTimeout(OnNavigationTimeout, 10000);
20 }
21
22 var navigation_success = 0;
23
24 function OnNavigationFailed(msg) {
25 if (!navigation_success) {
26 onFailure("NavigateURL", 1, 'ChromeFrame Navigation failed: ' + msg);
27 }
28 }
29
30 function OnNavigationTimeout() {
31 OnNavigationFailed('TIMEOUT');
32 }
33
34 function OnChromeFrameLoaded() {
35 navigation_success = 1;
36 onSuccess("NavigateURL", 1);
37 }
38
39 function GetChromeFrame() {
40 return window.document.ChromeFrame;
41 }
42 </script>
43 </head>
44
45 <body onload="onLoad();">
46 <div id="statusPanel" style="border: 1px solid red; width: 100%">
47 Test running....
48 </div>
49 <object id="ChromeFrame" width="500" height="500"
50 codebase="http://www.google.com"
51 classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A">
52 <param name="onload" value="return OnChromeFrameLoaded();">
53 <embed id="ChromeFramePlugin" width="500" height="500"
54 name="ChromeFrame" onload="return OnChromeFrameLoaded();"
55 type="application/chromeframe">
56 </embed>
57 </OBJECT>
58 <br />
59 <br />
60
61 <p>Tests ChromeFrame Navigation</p>
62
63 </body>
64 </html>
OLDNEW
« no previous file with comments | « chrome_frame/test/data/navigate_out.html ('k') | chrome_frame/test/data/navigateurl_basic_frame.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698