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

Side by Side 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, 1 month 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 unified diff | Download patch
OLDNEW
1 Test page for bug 15356 and bug 29121 1 Test the required behavior of XMLHttpRequest.getAllResponseHeaders()
2 2
3 Assertion: Invoking getAllResponseHeaders method when readyState >= 2 (HEADERS_R ECEIVED) should return a conforming list of headers. 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 PASSED 0
6 PASSED 1
7 PASSED 2: getAllResponseHeaders returned what looks like a conforming headerlist .
8 PASSED 3
9 PASSED 4
10 5
6 PASS {state: 0}; headerValues = xhr.getAllResponseHeaders(); did not throw excep tion.
7 PASS headerValues is the empty string
8 PASS {state: 1}; headerValues = xhr.getAllResponseHeaders(); did not throw excep tion.
9 PASS headerValues is the empty string
10 PASS getAllResponseHeaders() result is empty in ready state 1.
11 PASS xhr.open("GET", "resources/1251.html", true); did not throw exception.
12 PASS {state: 1}; headerValues = xhr.getAllResponseHeaders(); did not throw excep tion.
13 PASS headerValues is the empty string
14 PASS xhr.send(null); did not throw exception.
15 PASS {state: 2}; headerValues = xhr.getAllResponseHeaders(); did not throw excep tion.
16 PASS headerValues is not the empty string
17 PASS Header values appears to be conforming.
18 PASS {state: 3}; headerValues = xhr.getAllResponseHeaders(); did not throw excep tion.
19 PASS headerValues is not the empty string
20 PASS responseHeaders is savedHeaders
21 PASS {state: 4}; headerValues = xhr.getAllResponseHeaders(); did not throw excep tion.
22 PASS headerValues is not the empty string
23 PASS responseHeaders is savedHeaders
24 PASS successfullyParsed is true
25
26 TEST COMPLETE
27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698