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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/eventsource/eventsource-parse-event-stream-expected.txt
diff --git a/LayoutTests/http/tests/eventsource/eventsource-parse-event-stream-expected.txt b/LayoutTests/http/tests/eventsource/eventsource-parse-event-stream-expected.txt
index 9ba0c279f7c855e5ffbfa0dd573c82701f2ba2bf..8a4af082fa4e4a2dac7a91dc06383eb2f0162208 100644
--- a/LayoutTests/http/tests/eventsource/eventsource-parse-event-stream-expected.txt
+++ b/LayoutTests/http/tests/eventsource/eventsource-parse-event-stream-expected.txt
@@ -1,14 +1,25 @@
-Test EventSource text/event-stream parsing. Should print a series of PASS messages followed by DONE.
-
-PASS: got open event
-PASS: received event with two newlines
-PASS: received event with data "simple"
-PASS: received event with data spanning multiple lines
-PASS: received event and lastEventId is "1"
-PASS: received event and lastEventId is still "1"
-PASS: received event and lastEventId has been cleared
-PASS: got open event from server
-PASS: received event and the event name has been reset
-PASS: received event with data that contains a colon
+Test EventSource text/event-stream parsing.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS es = new EventSource("resources/event-stream.php"); did not throw exception.
+PASS got open event
+PASS evt.data is "\n\n"
+PASS evt.data is "simple"
+PASS evt.data is "spanning\nmultiple\n\nlines\n"
+PASS evt.data is "id is 1"
+PASS evt.lastEventId is "1"
+PASS evt.data is "id is still 1"
+PASS evt.lastEventId is "1"
+PASS evt.data is "no id"
+PASS evt.lastEventId is ""
+PASS got open event from server
+PASS evt.data is "a message event with the name \"message\""
+PASS evt.data is "a line ending with crlf\na line with a : (colon)\na line ending with cr"
+PASS count is 7
DONE
+PASS successfullyParsed is true
+
+TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698