[Fetch API] SubresourceLoader::checkRedirectionCrossOriginAccessControl should not...
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / fetch / api / basic / mode-same-origin.js
index ba3cb392b32c5df5e5b2f0b0a326b6eba3a9f937..85daa507b879ac9d1bdcd596df065f9f83ab6ee5 100644 (file)
@@ -23,5 +23,12 @@ fetchSameOrigin(host_info.HTTP_ORIGIN + "/fetch/api/resources/top.txt", true);
 fetchSameOrigin(host_info.HTTPS_ORIGIN + "/fetch/api/resources/top.txt", false);
 fetchSameOrigin(host_info.HTTP_REMOTE_ORIGIN + "/fetch/api/resources/top.txt", false);
 
+var redirPath = dirname(location.pathname) + RESOURCES_DIR + "redirect.py?location=";
+
+fetchSameOrigin(redirPath + RESOURCES_DIR + "top.txt", true);
+fetchSameOrigin(redirPath + host_info.HTTP_ORIGIN + "/fetch/api/resources/top.txt", true);
+fetchSameOrigin(redirPath + host_info.HTTPS_ORIGIN + "/fetch/api/resources/top.txt", false);
+fetchSameOrigin(redirPath + host_info.HTTP_REMOTE_ORIGIN + "/fetch/api/resources/top.txt", false);
+
 done();