OLD | NEW |
1 CONSOLE ERROR: EventSource's response has a charset ("windows-1251") that is not
UTF-8. Aborting the connection. | 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. | 2 CONSOLE ERROR: EventSource's response has a MIME type ("text/event-stream-foobar
") that is not "text/event-stream". Aborting the connection. |
3 Test for bug 45372: https://bugs.webkit.org/show_bug.cgi?id=45372 | 3 Test EventSource with an event-stream with a Content-Type with a charset is stil
l recognized. |
4 | 4 |
5 Test EventSource with an event-stream with a Content-Type with a charset is stil
l recognized. You should see 5 PASSED below. | 5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
6 | 6 |
7 PASSED: text/event-stream; charset=UTF-8 | |
8 PASSED: text/event-stream; charset=windows-1251 | |
9 PASSED: text/event-stream; charset=utf-8 | |
10 PASSED: text/event-stream; charset="UTF-8" | |
11 PASSED: text/event-stream-foobar; | |
12 | 7 |
| 8 PASS es = new EventSource("/eventsource/resources/response-content-type-charset.
php?contentType=text/event-stream%3B%20charset%3DUTF-8") did not throw exception
. |
| 9 Content type: text/event-stream; charset=UTF-8 |
| 10 PASS !!es.sawError is false |
| 11 PASS es.sawMessage is true |
| 12 PASS es.sawOpen is true |
| 13 PASS es = new EventSource("/eventsource/resources/response-content-type-charset.
php?contentType=text/event-stream%3B%20charset%3Dwindows-1251") did not throw ex
ception. |
| 14 Content type: text/event-stream; charset=windows-1251 |
| 15 PASS es.sawError is true |
| 16 PASS !!es.sawMessage is false |
| 17 PASS !!es.sawOpen is false |
| 18 PASS es = new EventSource("/eventsource/resources/response-content-type-charset.
php?contentType=text/event-stream%3B%20charset%3Dutf-8") did not throw exception
. |
| 19 Content type: text/event-stream; charset=utf-8 |
| 20 PASS !!es.sawError is false |
| 21 PASS es.sawMessage is true |
| 22 PASS es.sawOpen is true |
| 23 PASS es = new EventSource("/eventsource/resources/response-content-type-charset.
php?contentType=text/event-stream%3B%20charset%3D%22UTF-8%22") did not throw exc
eption. |
| 24 Content type: text/event-stream; charset="UTF-8" |
| 25 PASS !!es.sawError is false |
| 26 PASS es.sawMessage is true |
| 27 PASS es.sawOpen is true |
| 28 PASS es = new EventSource("/eventsource/resources/response-content-type-charset.
php?contentType=text/event-stream-foobar%3B") did not throw exception. |
| 29 Content type: text/event-stream-foobar; |
| 30 PASS es.sawError is true |
| 31 PASS !!es.sawMessage is false |
| 32 PASS !!es.sawOpen is false |
| 33 PASS successfullyParsed is true |
| 34 |
| 35 TEST COMPLETE |
| 36 |
OLD | NEW |