mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 13:18:45 +02:00
Automatic update from web-platform-tests Add constructor tests for NFCErrorEvent/NFCReadingEvent (#15667) -- wpt-commits: 9eca7476474f89226d6695b199b7fd071f10886a wpt-pr: 15667
11 lines
448 B
HTML
11 lines
448 B
HTML
<!DOCTYPE html>
|
|
<title>NFCReadingEvent constructor</title>
|
|
<link rel="help" href="https://w3c.github.io/web-nfc/#dom-nfcreadingevent">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script>
|
|
test(() => {
|
|
assert_equals(NFCReadingEvent.length, 2);
|
|
assert_throws(new TypeError, () => new NFCReadingEvent('message'));
|
|
}, 'NFCReadingEvent constructor without init dict');
|
|
</script>
|