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

Commit db51dd8

Browse files
committed
Add WebUSB
1 parent 3eb66e0 commit db51dd8

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

scripts/9/data.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,15 @@ var tests = [
11231123
urls: [
11241124
[ 'w3c', 'https://webbluetoothcg.github.io/web-bluetooth/' ],
11251125
]
1126+
}, {
1127+
id: 'usb',
1128+
name: 'Web USB',
1129+
value: 5,
1130+
urls: [
1131+
[ 'w3c', 'https://wicg.github.io/webusb/' ]
1132+
]
1133+
}
1134+
]
11261135
}, {
11271136
id: 'output',
11281137
name: 'Output',

scripts/9/engine.js

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

14591459

1460+
/* web usb */
1461+
1462+
function (results) {
1463+
results.addItem({
1464+
key: 'hardware.usb',
1465+
passed: 'usb' in navigator && "USBDevice" in window
1466+
});
1467+
},
1468+
1469+
14601470
/* fullscreen */
14611471

14621472
function (results) {

0 commit comments

Comments
 (0)