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

Unified Diff: LayoutTests/http/tests/eventsource/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/eventsource-status-code-states-expected.txt
diff --git a/LayoutTests/http/tests/eventsource/eventsource-status-code-states-expected.txt b/LayoutTests/http/tests/eventsource/eventsource-status-code-states-expected.txt
index 16d6441111ba935044548eb7eeefce02ae62d66e..f5fd39439836d0e2e574b1f3cbe5e46141565079 100644
--- a/LayoutTests/http/tests/eventsource/eventsource-status-code-states-expected.txt
+++ b/LayoutTests/http/tests/eventsource/eventsource-status-code-states-expected.txt
@@ -1,13 +1,28 @@
-Test EventSource states for different status codes. Should print a series of PASS messages followed by DONE.
-
-PASS: status code 200 resulted in states CONNECTING, OPEN, OPEN, CONNECTING, CLOSED
-PASS: status code 204 resulted in states CONNECTING, CLOSED, CLOSED
-PASS: status code 205 resulted in states CONNECTING, CLOSED, CLOSED
-PASS: status code 202 resulted in states CONNECTING, CLOSED, CLOSED
-PASS: status code 301 resulted in states CONNECTING, OPEN, OPEN, CONNECTING, CLOSED
-PASS: status code 302 resulted in states CONNECTING, OPEN, OPEN, CONNECTING, CLOSED
-PASS: status code 303 resulted in states CONNECTING, OPEN, OPEN, CONNECTING, CLOSED
-PASS: status code 307 resulted in states CONNECTING, OPEN, OPEN, CONNECTING, CLOSED
-PASS: status code 404 resulted in states CONNECTING, CLOSED, CLOSED
+Test EventSource states for different status codes.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS arrayCompare(states, tests[count].expectedStates) is true
+PASS status code 200 resulted in states CONNECTING, OPEN, OPEN, CONNECTING, CLOSED
+PASS arrayCompare(states, tests[count].expectedStates) is true
+PASS status code 204 resulted in states CONNECTING, CLOSED, CLOSED
+PASS arrayCompare(states, tests[count].expectedStates) is true
+PASS status code 205 resulted in states CONNECTING, CLOSED, CLOSED
+PASS arrayCompare(states, tests[count].expectedStates) is true
+PASS status code 202 resulted in states CONNECTING, CLOSED, CLOSED
+PASS arrayCompare(states, tests[count].expectedStates) is true
+PASS status code 301 resulted in states CONNECTING, OPEN, OPEN, CONNECTING, CLOSED
+PASS arrayCompare(states, tests[count].expectedStates) is true
+PASS status code 302 resulted in states CONNECTING, OPEN, OPEN, CONNECTING, CLOSED
+PASS arrayCompare(states, tests[count].expectedStates) is true
+PASS status code 303 resulted in states CONNECTING, OPEN, OPEN, CONNECTING, CLOSED
+PASS arrayCompare(states, tests[count].expectedStates) is true
+PASS status code 307 resulted in states CONNECTING, OPEN, OPEN, CONNECTING, CLOSED
+PASS arrayCompare(states, tests[count].expectedStates) is true
+PASS status code 404 resulted in states CONNECTING, CLOSED, CLOSED
DONE
+PASS successfullyParsed is true
+
+TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698