summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 17:55:52 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 17:55:52 +0000
commit0d60c7643b6fb555e1c0f60615853a37d6fa1fa8 (patch)
treeeab2c1e6a0def7a2a65bfd3d6580c492ed857674 /chrome_frame/test
parentce3c2d5d4b80442cfa2f9c7de8df9e9bb35fe78d (diff)
downloadchromium_src-0d60c7643b6fb555e1c0f60615853a37d6fa1fa8.zip
chromium_src-0d60c7643b6fb555e1c0f60615853a37d6fa1fa8.tar.gz
chromium_src-0d60c7643b6fb555e1c0f60615853a37d6fa1fa8.tar.bz2
Fix for the ChromeFrame XHR test failures. This test was incorrectly hardcoding the
xhr url as localhost:1337 which does not work after the recent http test server reorg. We now use the GetBaseUrlPath helper function to form the url used for XHR requests. Review URL: http://codereview.chromium.org/3106025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56711 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test')
-rw-r--r--chrome_frame/test/data/xmlhttprequest_test.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome_frame/test/data/xmlhttprequest_test.html b/chrome_frame/test/data/xmlhttprequest_test.html
index 09a7759..f5894c2 100644
--- a/chrome_frame/test/data/xmlhttprequest_test.html
+++ b/chrome_frame/test/data/xmlhttprequest_test.html
@@ -21,7 +21,8 @@
"Failed to get XHR object");
}
- xhr.open("GET", "http://localhost:1337/echoheader?User-Agent", false);
+ var url = GetBaseUrlPath() + "echoheader?User-Agent";
+ xhr.open("GET", url, false);
try {
xhr.send(null);
var pos = xhr.responseText.indexOf("chromeframe");