OLD | NEW |
1 CONSOLE ERROR: EventSource cannot load http://127.0.0.1:8080/eventsource/resourc
es/es-cors-basic.php?count=1. No 'Access-Control-Allow-Origin' header is present
on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allo
wed access. | 1 CONSOLE ERROR: EventSource cannot load http://127.0.0.1:8080/eventsource/resourc
es/es-cors-basic.php?count=1. Received response but it doesn't pass the access c
ontrol check: No 'Access-Control-Allow-Origin' header is present on the requeste
d resource. 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/resourc
es/es-cors-basic.php?count=2. The 'Access-Control-Allow-Origin' header has a val
ue 'http://some.other.origin:80' that is not equal to the supplied origin. Origi
n 'http://127.0.0.1:8000' is therefore not allowed access. | 2 CONSOLE ERROR: EventSource cannot load http://127.0.0.1:8080/eventsource/resourc
es/es-cors-basic.php?count=2. Received response but it doesn't pass the access c
ontrol check: The 'Access-Control-Allow-Origin' header has a value 'http://some.
other.origin:80' that is not equal to the supplied origin. Origin 'http://127.0.
0.1:8000' is therefore not allowed access. |
3 [Worker] Test that basic EventSource cross-origin requests fail until they are a
llowed by the Access-Control-Allow-Origin header. | 3 [Worker] Test that basic EventSource cross-origin requests fail until they are a
llowed by the Access-Control-Allow-Origin header. |
4 | 4 |
5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
6 | 6 |
7 | 7 |
8 Starting worker: ../script-tests/eventsource-cors-basic.js | 8 Starting worker: ../script-tests/eventsource-cors-basic.js |
9 PASS [Worker] es = new EventSource("http://127.0.0.1:8080/eventsource/resources/
es-cors-basic.php?count=1") did not throw exception. | 9 PASS [Worker] es = new EventSource("http://127.0.0.1:8080/eventsource/resources/
es-cors-basic.php?count=1") did not throw exception. |
10 PASS [Worker] es.withCredentials is false | 10 PASS [Worker] es.withCredentials is false |
11 PASS [Worker] es.readyState is es.CLOSED | 11 PASS [Worker] es.readyState is es.CLOSED |
12 PASS [Worker] count != 3 && count != 4 is true | 12 PASS [Worker] count != 3 && count != 4 is true |
13 PASS [Worker] es = new EventSource("http://127.0.0.1:8080/eventsource/resources/
es-cors-basic.php?count=2") did not throw exception. | 13 PASS [Worker] es = new EventSource("http://127.0.0.1:8080/eventsource/resources/
es-cors-basic.php?count=2") did not throw exception. |
14 PASS [Worker] es.withCredentials is false | 14 PASS [Worker] es.withCredentials is false |
15 PASS [Worker] es.readyState is es.CLOSED | 15 PASS [Worker] es.readyState is es.CLOSED |
16 PASS [Worker] count != 3 && count != 4 is true | 16 PASS [Worker] count != 3 && count != 4 is true |
17 PASS [Worker] es = new EventSource("http://127.0.0.1:8080/eventsource/resources/
es-cors-basic.php?count=3") did not throw exception. | 17 PASS [Worker] es = new EventSource("http://127.0.0.1:8080/eventsource/resources/
es-cors-basic.php?count=3") did not throw exception. |
18 PASS [Worker] es.withCredentials is false | 18 PASS [Worker] es.withCredentials is false |
19 PASS [Worker] evt.origin.indexOf('http://127.0.0.1:8080') === 0 is true | 19 PASS [Worker] evt.origin.indexOf('http://127.0.0.1:8080') === 0 is true |
20 PASS [Worker] evt.data == 'DATA1' && evt.lastEventId == '77' is true | 20 PASS [Worker] evt.data == 'DATA1' && evt.lastEventId == '77' is true |
21 PASS [Worker] count is 4 | 21 PASS [Worker] count is 4 |
22 PASS [Worker] evt.origin.indexOf('http://127.0.0.1:8080') === 0 is true | 22 PASS [Worker] evt.origin.indexOf('http://127.0.0.1:8080') === 0 is true |
23 PASS [Worker] count is 4 | 23 PASS [Worker] count is 4 |
24 PASS [Worker] evt.data is "DATA2" | 24 PASS [Worker] evt.data is "DATA2" |
25 [Worker] DONE | 25 [Worker] DONE |
26 PASS successfullyParsed is true | 26 PASS successfullyParsed is true |
27 | 27 |
28 TEST COMPLETE | 28 TEST COMPLETE |
29 | 29 |
OLD | NEW |