mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -0,0 +1,15 @@
|
|||
test(() => {
|
||||
const buf = new ArrayBuffer(2),
|
||||
view = new Uint8Array(buf),
|
||||
buf2 = new ArrayBuffer(2),
|
||||
view2 = new Uint8Array(buf2),
|
||||
decoder = new TextDecoder("utf-8")
|
||||
view[0] = 0xEF
|
||||
view[1] = 0xBB
|
||||
view2[0] = 0xBF
|
||||
view2[1] = 0x40
|
||||
assert_equals(decoder.decode(buf, {stream:true}), "")
|
||||
view[0] = 0x01
|
||||
view[1] = 0x02
|
||||
assert_equals(decoder.decode(buf2), "@")
|
||||
}, "Modify buffer after passing it in")
|
Loading…
Add table
Add a link
Reference in a new issue