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

Unified Diff: LayoutTests/http/tests/eventsource/workers/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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/eventsource/workers/eventsource-eof-expected.txt
diff --git a/LayoutTests/http/tests/eventsource/workers/eventsource-eof-expected.txt b/LayoutTests/http/tests/eventsource/workers/eventsource-eof-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..03d71cf9c0f710c164496f9b46f1c7a662e93715
--- /dev/null
+++ b/LayoutTests/http/tests/eventsource/workers/eventsource-eof-expected.txt
@@ -0,0 +1,22 @@
+[Worker] Test that EventSource discards event data if there is no newline before eof.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Starting worker: ../script-tests/eventsource-eof.js
+PASS [Worker] evt.type is "message"
+PASS [Worker] evt.data is "DATA1"
+PASS [Worker] evt.lastEventId is "1"
+PASS [Worker] evt.type is "message"
+PASS [Worker] evt.data is "DATA2"
+PASS [Worker] evt.lastEventId is "2"
+PASS [Worker] evt.type is "message"
+PASS [Worker] evt.data is "DATA3"
+PASS [Worker] evt.lastEventId is "3"
+PASS [Worker] evt.type is "msg"
+PASS [Worker] evt.data is "DATA"
+PASS [Worker] evt.lastEventId is "3.1"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698