Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 6497b0e

Browse files
committed
Add WebNFC
1 parent ec7dd22 commit 6497b0e

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

scripts/9/data.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,13 @@ var tests = [
11801180
urls: [
11811181
[ 'w3c', 'https://wicg.github.io/webusb/' ]
11821182
]
1183+
}, {
1184+
id: 'nfc',
1185+
name: 'Web NFC',
1186+
value: 0,
1187+
urls: [
1188+
[ 'w3c', 'https://w3c.github.io/web-nfc/' ]
1189+
]
11831190
}
11841191
]
11851192
}, {

scripts/9/engine.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,6 +1514,16 @@ Test9 = (function () {
15141514
},
15151515

15161516

1517+
/* web nfc */
1518+
1519+
function (results) {
1520+
results.addItem({
1521+
key: 'hardware.nfc',
1522+
passed: 'nfc' in navigator && "NFCMessage" in window
1523+
});
1524+
},
1525+
1526+
15171527
/* fullscreen */
15181528

15191529
function (results) {

0 commit comments

Comments
 (0)