Index: LayoutTests/http/tests/xmlhttprequest/responseURL.html |
diff --git a/LayoutTests/http/tests/xmlhttprequest/responseURL.html b/LayoutTests/http/tests/xmlhttprequest/responseURL.html |
index 0d2e13dd55cd47792eef0d0c89e47d391154b62d..333e3e4ac750b5f9ede11921a5fcd74c422d1478 100644 |
--- a/LayoutTests/http/tests/xmlhttprequest/responseURL.html |
+++ b/LayoutTests/http/tests/xmlhttprequest/responseURL.html |
@@ -30,7 +30,7 @@ function get(url, type) { |
get('resources/reply2.txt', 'text').then(function(xhr) { |
window.status = xhr.status; |
- shouldBeEqualToString('status', '2000'); |
+ shouldBeEqualToString('status', '200'); |
window.responseURL = xhr.responseURL; |
shouldBeEqualToString('responseURL', 'http://127.0.0.1:8000/xmlhttprequest/resources/reply2.txt'); |
@@ -41,6 +41,13 @@ get('resources/reply2.txt', 'text').then(function(xhr) { |
window.responseURL = xhr.responseURL; |
shouldBeEqualToString('responseURL', 'http://127.0.0.1:8000/xmlhttprequest/resources/reply2.xml'); |
+ return get('resources/navigation-target.html#foobar', 'text'); |
+}).then(function(xhr) { |
+ window.status = xhr.status; |
+ shouldBeEqualToString('status', '200'); |
+ window.responseURL = xhr.responseURL; |
+ shouldBeEqualToString('responseURL', 'http://127.0.0.1:8000/xmlhttprequest/resources/navigation-target.html'); |
+ |
return get('resources/redirect.php?url=not-found.txt', 'text'); |
}).then(function(xhr) { |
window.status = xhr.status; |