Update web-platform-tests to revision 9f31d497bf87bdf5ebc3ba70b5cb9f87786f4071

This commit is contained in:
WPT Sync Bot 2019-10-15 10:23:11 +00:00
parent 1f64024655
commit 4bc7277be1
145 changed files with 3112 additions and 1980 deletions

View file

@ -23,13 +23,13 @@
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(typeof message.records[0].toText() === 'string');
assert_equals(message.records[0].toText(), test_text_data,
'toText() contains the same text content');
assert_equals(message.records[0].toArrayBuffer(), null,
'toArrayBuffer() returns null');
assert_equals(message.records[0].toJSON(), null,
'toJSON() returns null');
assert_true(typeof message.records[0].text() === 'string');
assert_equals(message.records[0].text(), test_text_data,
'text() contains the same text content');
assert_equals(message.records[0].arrayBuffer(), null,
'arrayBuffer() returns null');
assert_equals(message.records[0].json(), null,
'json() returns null');
}, 'NDEFMessage constructor with a text record');
</script>