Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(450)

Side by Side Diff: LayoutTests/http/tests/workers/text-encoding-expected.txt

Issue 585873002: Show a warning when using sync xhr. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added needsrebaseline for win_rel. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 CONSOLE WARNING: Synchronous XMLHttpRequest on the main thread is deprecated bec ause of its detrimental effects to the end user's experience. For more help, che ck http://xhr.spec.whatwg.org/.
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698