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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/responseURL.html

Issue 681513003: XMLHttpRequest.responseURL should exclude url fragment (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: After editing the test case. Created 6 years, 2 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 | LayoutTests/http/tests/xmlhttprequest/responseURL-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/responseURL-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698