mirror of
https://github.com/servo/servo.git
synced 2025-07-10 17:03:40 +01:00
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>
|