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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/getAllResponseHeaders-expected.txt

Issue 46913002: Have XHR.getResponseHeader() return null in initial ready states. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Test code consistency Created 7 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
Index: LayoutTests/http/tests/xmlhttprequest/getAllResponseHeaders-expected.txt
diff --git a/LayoutTests/http/tests/xmlhttprequest/getAllResponseHeaders-expected.txt b/LayoutTests/http/tests/xmlhttprequest/getAllResponseHeaders-expected.txt
index 805641e283164bc1c3eab1fef135e594085b8541..4496c8c5f5d90128d1a9a83eaac3bfaf16cd14f2 100644
--- a/LayoutTests/http/tests/xmlhttprequest/getAllResponseHeaders-expected.txt
+++ b/LayoutTests/http/tests/xmlhttprequest/getAllResponseHeaders-expected.txt
@@ -1,10 +1,27 @@
-Test page for bug 15356 and bug 29121
+Test the required behavior of XMLHttpRequest.getAllResponseHeaders()
-Assertion: Invoking getAllResponseHeaders method when readyState >= 2 (HEADERS_RECEIVED) should return a conforming list of headers.
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASSED 0
-PASSED 1
-PASSED 2: getAllResponseHeaders returned what looks like a conforming headerlist.
-PASSED 3
-PASSED 4
+
+PASS {state: 0}; headerValues = xhr.getAllResponseHeaders(); did not throw exception.
+PASS headerValues is the empty string
+PASS {state: 1}; headerValues = xhr.getAllResponseHeaders(); did not throw exception.
+PASS headerValues is the empty string
+PASS getAllResponseHeaders() result is empty in ready state 1.
+PASS xhr.open("GET", "resources/1251.html", true); did not throw exception.
+PASS {state: 1}; headerValues = xhr.getAllResponseHeaders(); did not throw exception.
+PASS headerValues is the empty string
+PASS xhr.send(null); did not throw exception.
+PASS {state: 2}; headerValues = xhr.getAllResponseHeaders(); did not throw exception.
+PASS headerValues is not the empty string
+PASS Header values appears to be conforming.
+PASS {state: 3}; headerValues = xhr.getAllResponseHeaders(); did not throw exception.
+PASS headerValues is not the empty string
+PASS responseHeaders is savedHeaders
+PASS {state: 4}; headerValues = xhr.getAllResponseHeaders(); did not throw exception.
+PASS headerValues is not the empty string
+PASS responseHeaders is savedHeaders
+PASS successfullyParsed is true
+
+TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698