mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update web-platform-tests to revision 2f95271debcba3e26e7294beeee4fa5a2ecfbfa0
This commit is contained in:
parent
6fab7a7d84
commit
48add2991a
74 changed files with 789 additions and 263 deletions
|
@ -72,7 +72,7 @@ nfc_test(async () => {
|
|||
await ndef.scan();
|
||||
parent.postMessage("Failure", "*");
|
||||
} catch (error) {
|
||||
if (error.name == "NotAllowedError") {
|
||||
if (error.name == "InvalidStateError") {
|
||||
parent.postMessage("Success", "*");
|
||||
} else {
|
||||
parent.postMessage("Failure", "*");
|
||||
|
@ -107,20 +107,6 @@ nfc_test(async (t, mockNFC) => {
|
|||
await promise;
|
||||
}, "Test that nfc watch success if NFC HW is enabled.");
|
||||
|
||||
nfc_test(async (t, mockNFC) => {
|
||||
const ndef = new NDEFReader();
|
||||
const controller = new AbortController();
|
||||
const ndefWatcher = new EventWatcher(t, ndef, ["reading", "readingerror"]);
|
||||
const promise = ndefWatcher.wait_for("reading").then(event => {
|
||||
assert_true(event instanceof NDEFReadingEvent);
|
||||
controller.abort();
|
||||
});
|
||||
await ndef.scan({signal : controller.signal});
|
||||
|
||||
mockNFC.setReadingMessage(createMessage([createTextRecord(test_text_data)]));
|
||||
await promise;
|
||||
}, "Test that NDEFReader.scan matches any ids if NDEFScanOptions.id is undefined.");
|
||||
|
||||
nfc_test(async (t, mockNFC) => {
|
||||
const ndef = new NDEFReader();
|
||||
const controller = new AbortController();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue