mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision a3dd2ad02c65588ad280ceac378d82e9250d1045
This commit is contained in:
parent
e26530341b
commit
15e68ad3d3
171 changed files with 2819 additions and 1841 deletions
|
@ -23,6 +23,11 @@
|
|||
assert_equals(message.records.length, 1, 'one text record');
|
||||
assert_equals(message.records[0].recordType, 'text', 'messageType');
|
||||
assert_equals(message.records[0].mediaType, 'text/plain', 'mediaType');
|
||||
assert_true(message.records[0].data instanceof DataView,
|
||||
'data returns a DataView');
|
||||
const decoder = new TextDecoder();
|
||||
assert_equals(decoder.decode(message.records[0].data), test_text_data,
|
||||
'data contains the same text content');
|
||||
assert_true(typeof message.records[0].text() === 'string');
|
||||
assert_equals(message.records[0].text(), test_text_data,
|
||||
'text() contains the same text content');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue