Update web-platform-tests to revision 82b73b315ce7ed1554e7a9b7bced66a5831e4ee5

This commit is contained in:
WPT Sync Bot 2019-08-19 10:23:52 +00:00
parent 00a9f30773
commit 76712d7d25
353 changed files with 6528 additions and 1307 deletions

View file

@ -23,9 +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].data() === 'string');
assert_equals(message.records[0].data(), test_text_data,
'data() contains the same text content');
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(), undefined,
'toJSON() returns undefined');
}, 'NDEFMessage constructor with a text record');
</script>