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

Side by Side Diff: chrome_frame/test/data/referrer_frame.html

Issue 1128013: Fix ChromeFrame referrer test which was flaky due to incorrect http header pa... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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
« no previous file with comments | « no previous file | chrome_frame/urlmon_moniker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <meta http-equiv="x-ua-compatible" content="chrome=1" /> 3 <meta http-equiv="x-ua-compatible" content="chrome=1" />
4 <title>ChromeFrame referrer frame</title> 4 <title>ChromeFrame referrer frame</title>
5 <script type="text/javascript" 5 <script type="text/javascript"
6 src="chrome_frame_tester_helpers.js"></script> 6 src="chrome_frame_tester_helpers.js"></script>
7 7
8 <script type="text/javascript"> 8 <script type="text/javascript">
9 function onLoad() { 9 function onLoad() {
10 var referrer_search = /referrer_main.html/; 10 if (isRunningInChrome()) {
11 var referrer_pos = document.referrer.search(referrer_search); 11 var referrer_search = /referrer_main.html/;
12 var referrer_pos = document.referrer.search(referrer_search);
12 13
13 if (referrer_pos != -1) { 14 if (referrer_pos != -1) {
14 onSuccess("FullTab_ReferrerTest", 1); 15 onSuccess("FullTab_ReferrerTest", 1);
15 } else { 16 } else {
16 onFailure("FullTab_ReferrerTest", 1, "Failed to find referrer"); 17 onFailure("FullTab_ReferrerTest", 1, "Failed to find referrer");
18 }
17 } 19 }
18 } 20 }
19 </script> 21 </script>
20 </head> 22 </head>
21 23
22 <body onLoad="onLoad()"> 24 <body onLoad="onLoad()">
23 ChromeFrame full tab mode referrer test 25 ChromeFrame full tab mode referrer test
24 </body> 26 </body>
25 </html> 27 </html>
OLDNEW
« no previous file with comments | « no previous file | chrome_frame/urlmon_moniker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698