Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / eventsource / eventsource-cors-with-credentials-expected.txt
blob0290db04269f7ce2c72c27d0ededc73497b56ee3
1 CONSOLE ERROR: EventSource cannot load http://127.0.0.1:8080/eventsource/resources/es-cors-credentials.php?count=1. A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'http://127.0.0.1:8000' is therefore not allowed access.
2 CONSOLE ERROR: EventSource cannot load http://127.0.0.1:8080/eventsource/resources/es-cors-credentials.php?count=2. A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'http://127.0.0.1:8000' is therefore not allowed access.
3 CONSOLE ERROR: EventSource cannot load http://127.0.0.1:8080/eventsource/resources/es-cors-credentials.php?count=3. Credentials flag is 'true', but the 'Access-Control-Allow-Credentials' header is ''. It must be 'true' to allow credentials. Origin 'http://127.0.0.1:8000' is therefore not allowed access.
4 Test that EventSource cross-origin requests with credentials fail until the correct CORS headers are sent.
6 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
9 PASS es = new EventSource("http://127.0.0.1:8080/eventsource/resources/es-cors-credentials.php?count=1", {'withCredentials': true}) did not throw exception.
10 PASS es.withCredentials is true
11 PASS count != 4 && count != 5 is true
12 PASS es = new EventSource("http://127.0.0.1:8080/eventsource/resources/es-cors-credentials.php?count=2", {'withCredentials': true}) did not throw exception.
13 PASS es.withCredentials is true
14 PASS count != 4 && count != 5 is true
15 PASS es = new EventSource("http://127.0.0.1:8080/eventsource/resources/es-cors-credentials.php?count=3", {'withCredentials': true}) did not throw exception.
16 PASS es.withCredentials is true
17 PASS count != 4 && count != 5 is true
18 PASS es = new EventSource("http://127.0.0.1:8080/eventsource/resources/es-cors-credentials.php?count=4", {'withCredentials': true}) did not throw exception.
19 PASS es.withCredentials is true
20 PASS evt.origin.indexOf('http://127.0.0.1:8080') === 0 is true
21 PASS evt.data is "DATA1"
22 PASS evt.lastEventId is "77"
23 PASS count is 5
24 PASS evt.origin.indexOf('http://127.0.0.1:8080') === 0 is true
25 PASS count is 5
26 PASS evt.data is "DATA2"
27 PASS successfullyParsed is true
29 TEST COMPLETE