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

Side by Side Diff: LayoutTests/http/tests/eventsource/eventsource-parse-event-stream-expected.txt

Issue 347043002: Rework EventSource tests for better Worker test coverage. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move out CORS tests Created 6 years, 6 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 unified diff | Download patch
OLDNEW
1 Test EventSource text/event-stream parsing. Should print a series of PASS messag es followed by DONE. 1 Test EventSource text/event-stream parsing.
2 2
3 PASS: got open event 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 PASS: received event with two newlines 4
5 PASS: received event with data "simple" 5
6 PASS: received event with data spanning multiple lines 6 PASS es = new EventSource("resources/event-stream.php"); did not throw exception .
7 PASS: received event and lastEventId is "1" 7 PASS got open event
8 PASS: received event and lastEventId is still "1" 8 PASS evt.data is "\n\n"
9 PASS: received event and lastEventId has been cleared 9 PASS evt.data is "simple"
10 PASS: got open event from server 10 PASS evt.data is "spanning\nmultiple\n\nlines\n"
11 PASS: received event and the event name has been reset 11 PASS evt.data is "id is 1"
12 PASS: received event with data that contains a colon 12 PASS evt.lastEventId is "1"
13 PASS evt.data is "id is still 1"
14 PASS evt.lastEventId is "1"
15 PASS evt.data is "no id"
16 PASS evt.lastEventId is ""
17 PASS got open event from server
18 PASS evt.data is "a message event with the name \"message\""
19 PASS evt.data is "a line ending with crlf\na line with a : (colon)\na line endin g with cr"
20 PASS count is 7
13 DONE 21 DONE
22 PASS successfullyParsed is true
14 23
24 TEST COMPLETE
25
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698