| OLD | NEW |
| 1 CONSOLE WARNING: Avoid synchronous requests as it hampers user experience due to
unresponsiveness of the web page. Refer https://xhr.spec.whatwg.org/#sync-warni
ng. |
| 1 This test verifies handling of text encoding in workers. The behavior matches FF
3.1b2 with a single exclusion (see below). | 2 This test verifies handling of text encoding in workers. The behavior matches FF
3.1b2 with a single exclusion (see below). |
| 2 This is what's tested: | 3 This is what's tested: |
| 3 - If http header 'Content-Type' with 'charset' specified is on response with wor
ker script or XHR payload, that encoding is used. | 4 - If http header 'Content-Type' with 'charset' specified is on response with wor
ker script or XHR payload, that encoding is used. |
| 4 - In absence of http header, the script of the worker is decoded using UTF-8. | 5 - In absence of http header, the script of the worker is decoded using UTF-8. |
| 5 - In absence of http header, the content of the XHR request is decoded using UTF
-8. | 6 - In absence of http header, the content of the XHR request is decoded using UTF
-8. |
| 6 - The URLs used in workers (for subworkers or XHR) are always encoded using UTF-
8 (in regular html documents parts of the query an hash may be encoded with othe
r encodings). | 7 - The URLs used in workers (for subworkers or XHR) are always encoded using UTF-
8 (in regular html documents parts of the query an hash may be encoded with othe
r encodings). |
| 7 - The base URL for the worker (used to resolve relative URLs for subworkers and
XHR) is the URL of its script. | 8 - The base URL for the worker (used to resolve relative URLs for subworkers and
XHR) is the URL of its script. |
| 8 - importScripts() decodes the scripts using UTF-8. | 9 - importScripts() decodes the scripts using UTF-8. |
| 9 Document encoding: windows-1251 | 10 Document encoding: windows-1251 |
| 10 Document, Workers: All XHR responses should match this: Привет | 11 Document, Workers: All XHR responses should match this: Привет |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 worker 2: Sub: Test string encoded using UTF-8: Привет. | 31 worker 2: Sub: Test string encoded using UTF-8: Привет. |
| 31 worker 2: Sub: Test string encoded using Windows-1251: ������. | 32 worker 2: Sub: Test string encoded using Windows-1251: ������. |
| 32 worker 2: Sub: Test string encoded using koi8-r: ������. | 33 worker 2: Sub: Test string encoded using koi8-r: ������. |
| 33 worker 2: Test string encoded using UTF-8: п÷я─п╦п╡п╣я┌. | 34 worker 2: Test string encoded using UTF-8: п÷я─п╦п╡п╣я┌. |
| 34 worker 2: Test string encoded using Windows-1251: оПХБЕР. | 35 worker 2: Test string encoded using Windows-1251: оПХБЕР. |
| 35 worker 2: Test string encoded using koi8-r: Привет. | 36 worker 2: Test string encoded using koi8-r: Привет. |
| 36 worker 2: XHR: Привет | 37 worker 2: XHR: Привет |
| 37 worker 2: XHR: Привет | 38 worker 2: XHR: Привет |
| 38 worker 2: exit | 39 worker 2: exit |
| 39 | 40 |
| OLD | NEW |