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

Unified Diff: LayoutTests/http/tests/eventsource/workers/eventsource-status-code-states-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-status-code-states-expected.txt
diff --git a/LayoutTests/http/tests/eventsource/workers/eventsource-status-code-states-expected.txt b/LayoutTests/http/tests/eventsource/workers/eventsource-status-code-states-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..98e8625388994a042c3985143e51724f9608a69c
--- /dev/null
+++ b/LayoutTests/http/tests/eventsource/workers/eventsource-status-code-states-expected.txt
@@ -0,0 +1,29 @@
+[Worker] Test EventSource states for different status codes.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Starting worker: ../script-tests/eventsource-status-code-states.js
+PASS [Worker] arrayCompare(states, tests[count].expectedStates) is true
+PASS [Worker] status code 200 resulted in states CONNECTING, OPEN, OPEN, CONNECTING, CLOSED
+PASS [Worker] arrayCompare(states, tests[count].expectedStates) is true
+PASS [Worker] status code 204 resulted in states CONNECTING, CLOSED, CLOSED
+PASS [Worker] arrayCompare(states, tests[count].expectedStates) is true
+PASS [Worker] status code 205 resulted in states CONNECTING, CLOSED, CLOSED
+PASS [Worker] arrayCompare(states, tests[count].expectedStates) is true
+PASS [Worker] status code 202 resulted in states CONNECTING, CLOSED, CLOSED
+PASS [Worker] arrayCompare(states, tests[count].expectedStates) is true
+PASS [Worker] status code 301 resulted in states CONNECTING, OPEN, OPEN, CONNECTING, CLOSED
+PASS [Worker] arrayCompare(states, tests[count].expectedStates) is true
+PASS [Worker] status code 302 resulted in states CONNECTING, OPEN, OPEN, CONNECTING, CLOSED
+PASS [Worker] arrayCompare(states, tests[count].expectedStates) is true
+PASS [Worker] status code 303 resulted in states CONNECTING, OPEN, OPEN, CONNECTING, CLOSED
+PASS [Worker] arrayCompare(states, tests[count].expectedStates) is true
+PASS [Worker] status code 307 resulted in states CONNECTING, OPEN, OPEN, CONNECTING, CLOSED
+PASS [Worker] arrayCompare(states, tests[count].expectedStates) is true
+PASS [Worker] status code 404 resulted in states CONNECTING, CLOSED, CLOSED
+[Worker] DONE
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698