Automatic update from web-platform-testsRemove Shared Worker WPT for WebUSB This change removes the WebUSB on Shared Worker web platform tests, since the feature is not yet implemented in any browser. Bug: 841510 Change-Id: I6cd09c245edcd69799b39701b82ba1510caf845e Reviewed-on: https://chromium-review.googlesource.com/1151752 Reviewed-by: Chong Zhang <chongz@chromium.org> Reviewed-by: Reilly Grant <reillyg@chromium.org> Commit-Queue: Ovidio Henriquez <odejesush@chromium.org> Cr-Commit-Position: refs/heads/master@{#578479} -- wpt-commits: ba4921d054808a44c2966507c19861ca729a76a2 wpt-pr: 12200
22 lines
687 B
JavaScript
22 lines
687 B
JavaScript
'use strict';
|
|
|
|
test(() => {
|
|
assert_false(isSecureContext);
|
|
assert_false('usb' in navigator);
|
|
}, '"usb" should not be present on navigator in an insecure context.');
|
|
|
|
[
|
|
'USB', 'USBAlternateInterface', 'USBConfiguration', 'USBConnectionEvent',
|
|
'USBDevice', 'USBEndpoint', 'USBInterface', 'USBInTransferResult',
|
|
'USBOutTransferResult', 'USBIsochronousInTransferResult',
|
|
'USBIsochronousOutTransferResult', 'USBIsochronousInTransferPacket',
|
|
'USBIsochronousOutTransferPacket',
|
|
].forEach((symbol) => {
|
|
test(() => {
|
|
assert_false(isSecureContext);
|
|
assert_false(symbol in this)
|
|
}, '"' + symbol + '" should not be visible in an insecure context.');
|
|
});
|
|
|
|
done();
|