mirror of
https://github.com/servo/servo.git
synced 2025-08-17 19:35:33 +01:00
Update web-platform-tests to revision 256b4685b8e702c14ed854347f23f4979edbfc8e
This commit is contained in:
parent
bac9903fbe
commit
45c91aa0cb
134 changed files with 1297 additions and 426 deletions
|
@ -408,10 +408,19 @@ NDEFRecordInit.record's recordType is 'mime' and NDEFRecordInit.record's \
|
|||
mediaType is undefined.");
|
||||
|
||||
nfc_test(async (t, mockNFC) => {
|
||||
// Make sure the push will be pending in the mock.
|
||||
mockNFC.setPendingPushCompleted(false);
|
||||
|
||||
const writer = new NDEFWriter();
|
||||
mockNFC.setIsNDEFTech(false);
|
||||
await promise_rejects(t, 'NotSupportedError', writer.push(test_text_data));
|
||||
}, "NDEFWriter.push should fail when the NFC device does not expose \
|
||||
const promise = writer.push(test_text_data);
|
||||
|
||||
// Just to make sure the push() request has already reached to the mock.
|
||||
const reader = new NDEFReader();
|
||||
await reader.scan();
|
||||
|
||||
mockNFC.simulateNonNDEFTagDiscovered();
|
||||
await promise_rejects(t, 'NotSupportedError', promise);
|
||||
}, "NDEFWriter.push should fail when the NFC device coming up does not expose \
|
||||
NDEF technology.");
|
||||
|
||||
nfc_test(async (t, mockNFC) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue