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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome_frame/urlmon_moniker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/data/referrer_frame.html
===================================================================
--- chrome_frame/test/data/referrer_frame.html (revision 42240)
+++ chrome_frame/test/data/referrer_frame.html (working copy)
@@ -7,13 +7,15 @@
<script type="text/javascript">
function onLoad() {
- var referrer_search = /referrer_main.html/;
- var referrer_pos = document.referrer.search(referrer_search);
+ if (isRunningInChrome()) {
+ var referrer_search = /referrer_main.html/;
+ var referrer_pos = document.referrer.search(referrer_search);
- if (referrer_pos != -1) {
- onSuccess("FullTab_ReferrerTest", 1);
- } else {
- onFailure("FullTab_ReferrerTest", 1, "Failed to find referrer");
+ if (referrer_pos != -1) {
+ onSuccess("FullTab_ReferrerTest", 1);
+ } else {
+ onFailure("FullTab_ReferrerTest", 1, "Failed to find referrer");
+ }
}
}
</script>
« 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