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

Side by Side Diff: LayoutTests/http/tests/eventsource/eventsource-eof-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 that EventSource discards event data if there is no newline before eof. Sho uld print a series of PASS messages followed by DONE. 1 Test that EventSource discards event data if there is no newline before eof.
2 2
3 PASS: got event with expected data, lastEventId, and type 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 PASS: got event with expected data, lastEventId, and type
5 PASS: got event with expected data, lastEventId, and type
6 DONE
7 4
5
6 PASS evt.type is "message"
7 PASS evt.data is "DATA1"
8 PASS evt.lastEventId is "1"
9 PASS evt.type is "message"
10 PASS evt.data is "DATA2"
11 PASS evt.lastEventId is "2"
12 PASS evt.type is "message"
13 PASS evt.data is "DATA3"
14 PASS evt.lastEventId is "3"
15 PASS evt.type is "msg"
16 PASS evt.data is "DATA"
17 PASS evt.lastEventId is "3.1"
18 PASS successfullyParsed is true
19
20 TEST COMPLETE
21
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698