OLD | NEW |
(Empty) | |
| 1 CONSOLE ERROR: EventSource's response has a charset ("windows-1251") that is not
UTF-8. Aborting the connection. |
| 2 CONSOLE ERROR: EventSource's response has a MIME type ("text/event-stream-foobar
") that is not "text/event-stream". Aborting the connection. |
| 3 [Worker] Test EventSource with an event-stream with a Content-Type with a charse
t is still recognized. |
| 4 |
| 5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 6 |
| 7 |
| 8 Starting worker: ../script-tests/eventsource-content-type-charset.js |
| 9 PASS [Worker] es = new EventSource("/eventsource/resources/response-content-type
-charset.php?contentType=text/event-stream%3B%20charset%3DUTF-8") did not throw
exception. |
| 10 [Worker] Content type: text/event-stream; charset=UTF-8 |
| 11 PASS [Worker] !!es.sawError is false |
| 12 PASS [Worker] es.sawMessage is true |
| 13 PASS [Worker] es.sawOpen is true |
| 14 PASS [Worker] es = new EventSource("/eventsource/resources/response-content-type
-charset.php?contentType=text/event-stream%3B%20charset%3Dwindows-1251") did not
throw exception. |
| 15 [Worker] Content type: text/event-stream; charset=windows-1251 |
| 16 PASS [Worker] es.sawError is true |
| 17 PASS [Worker] !!es.sawMessage is false |
| 18 PASS [Worker] !!es.sawOpen is false |
| 19 PASS [Worker] es = new EventSource("/eventsource/resources/response-content-type
-charset.php?contentType=text/event-stream%3B%20charset%3Dutf-8") did not throw
exception. |
| 20 [Worker] Content type: text/event-stream; charset=utf-8 |
| 21 PASS [Worker] !!es.sawError is false |
| 22 PASS [Worker] es.sawMessage is true |
| 23 PASS [Worker] es.sawOpen is true |
| 24 PASS [Worker] es = new EventSource("/eventsource/resources/response-content-type
-charset.php?contentType=text/event-stream%3B%20charset%3D%22UTF-8%22") did not
throw exception. |
| 25 [Worker] Content type: text/event-stream; charset="UTF-8" |
| 26 PASS [Worker] !!es.sawError is false |
| 27 PASS [Worker] es.sawMessage is true |
| 28 PASS [Worker] es.sawOpen is true |
| 29 PASS [Worker] es = new EventSource("/eventsource/resources/response-content-type
-charset.php?contentType=text/event-stream-foobar%3B") did not throw exception. |
| 30 [Worker] Content type: text/event-stream-foobar; |
| 31 PASS [Worker] es.sawError is true |
| 32 PASS [Worker] !!es.sawMessage is false |
| 33 PASS [Worker] !!es.sawOpen is false |
| 34 PASS successfullyParsed is true |
| 35 |
| 36 TEST COMPLETE |
| 37 |
OLD | NEW |