Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit f0607e0

Browse files
xiuqijixHonry
authored andcommitted
[WebNFC] Don't restrict arrayBuffer() to json and opaque records (#19720)
1 parent 7124815 commit f0607e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web-nfc/NDEFMessage_constructor.https.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
assert_true(typeof message.records[0].text() === 'string');
2727
assert_equals(message.records[0].text(), test_text_data,
2828
'text() contains the same text content');
29-
assert_equals(message.records[0].arrayBuffer(), null,
30-
'arrayBuffer() returns null');
29+
assert_true(message.records[0].arrayBuffer() instanceof ArrayBuffer,
30+
'arrayBuffer() returns an ArrayBuffer');
3131
assert_equals(message.records[0].json(), null,
3232
'json() returns null');
3333
}, 'NDEFMessage constructor with a text record');

0 commit comments

Comments
 (0)