File tree 4 files changed +28
-6
lines changed
4 files changed +28
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Last update:
14
14
- console: https://github.com/web-platform-tests/wpt/tree/767ae35464/console
15
15
- dom/abort: https://github.com/web-platform-tests/wpt/tree/d1f1ecbd52/dom/abort
16
16
- dom/events: https://github.com/web-platform-tests/wpt/tree/ab8999891c/dom/events
17
- - encoding: https://github.com/web-platform-tests/wpt/tree/0c1b9d1622 /encoding
17
+ - encoding: https://github.com/web-platform-tests/wpt/tree/a58bbf6d8c /encoding
18
18
- fetch/data-urls/resources: https://github.com/web-platform-tests/wpt/tree/7c79d998ff/fetch/data-urls/resources
19
19
- FileAPI: https://github.com/web-platform-tests/wpt/tree/e36dbb6f00/FileAPI
20
20
- FileAPI/file: https://github.com/web-platform-tests/wpt/tree/c01f637cca/FileAPI/file
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html class ="test-wait ">
3
+ < script id ="workerScript " type ="text/worker ">
4
+ // Blob will pass a huge Uint8Array object whose stringification will take long
5
+ const encoder = new TextEncoderStream ( )
6
+ const blob = new Blob ( [ new ArrayBuffer ( 1338720 ) ] )
7
+ const writable = new WritableStream ( )
8
+ blob . stream ( ) . pipeThrough ( encoder ) . pipeTo ( writable )
9
+ // Wait a bit for the piping to start
10
+ Promise . resolve ( ) . then ( ( ) => postMessage ( 'started' ) ) ;
11
+ </ script >
12
+ < script >
13
+ const worker = new Worker ( URL . createObjectURL ( new Blob ( [
14
+ document . getElementById ( "workerScript" ) . textContent
15
+ ] ) ) )
16
+ worker . onmessage = ( ) => {
17
+ worker . terminate ( ) ;
18
+ document . documentElement . classList . remove ( "test-wait" ) ;
19
+ } ;
20
+ </ script >
Original file line number Diff line number Diff line change 167
167
t . add_cleanup ( ( ) => {
168
168
frame . remove ( ) ;
169
169
} ) ;
170
- frame . src = "resources/text-plain-charset.py?label=" + label ;
170
+ // Intentionally use <meta> as Content-Type results in browser differences
171
+ // See /html/syntax/charset/inheritance-bogus-meta.html
172
+ frame . src = "resources/text-html-meta-charset.py?label=" + label ;
171
173
frame . onload = t . step_func_done ( ( ) => {
172
- // If we ever change this default this needs adjusting accordingly.
173
- assert_equals ( frame . contentDocument . characterSet , "windows-1252 " ) ;
174
- assert_equals ( frame . contentDocument . inputEncoding , "windows-1252 " ) ;
174
+ // UTF-8 as it inherits from the parent document when unrecognized
175
+ assert_equals ( frame . contentDocument . characterSet , "UTF-8 " ) ;
176
+ assert_equals ( frame . contentDocument . inputEncoding , "UTF-8 " ) ;
175
177
} ) ;
176
178
document . body . append ( frame ) ;
177
179
} , `${ label } is not supported by the Encoding Standard` ) ;
Original file line number Diff line number Diff line change 16
16
"path" : " dom/events"
17
17
},
18
18
"encoding" : {
19
- "commit" : " 0c1b9d1622ae0f27f82d7f7d7a1e9e69d410a3ca " ,
19
+ "commit" : " a58bbf6d8c0db1f1fd5352e846acb0754ee55567 " ,
20
20
"path" : " encoding"
21
21
},
22
22
"fetch/data-urls/resources" : {
You can’t perform that action at this time.
0 commit comments