Closed Bug 1486062 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 12678 - Improve Code Coverage for WebUSB

Categories

(Core :: DOM: Device Interfaces, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 12678 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/12678
Details from upstream follow.

Ovidio Henriquez <odejesush@chromium.org> wrote:
>  Improve Code Coverage for WebUSB
>  
>  This change improves the code coverage for the sources files under
>  //third_party/blink/renderer/modules/webusb.
>  
>  The affected files are:
>  * usb.cc
>  * usb_alternate_interface.cc
>  * usb_configuration.cc
>  * usb_device.cc
>  * usb_endpoint.cc
>  * usb_interface.cc
>  
>  Bug: 854831
>  Change-Id: Ie67533ece27f1c944b0e9186d01a61219a30f805
>  Reviewed-on: https://chromium-review.googlesource.com/1183789
>  WPT-Export-Revision: 20e40a4802ffcf4c0edd03bc36666cf5f466d94b
Component: web-platform-tests → DOM: Device Interfaces
Product: Testing → Core
Ran 12 tests and 125 subtests
OK     : 11
PASS   : 2
FAIL   : 121
TIMEOUT: 3

New tests that have failures or other problems:
/webusb/usb-disabled-by-feature-policy.https.sub.html
    Feature-Policy header {"usb" : []} disallows getDevices in the top-level document.: FAIL
    Feature-Policy header {"usb" : []} disallows requestDevice in the top-level document.: FAIL
/webusb/usbAlternateInterface.https.any.html
    Can construct a USBAlternateInterface.: FAIL
    Constructing a USBAlternateInterface with an invalid alternate setting throws a range error.: FAIL
/webusb/usbAlternateInterface.https.any.worker.html
    Can construct a USBAlternateInterface.: FAIL
    Constructing a USBAlternateInterface with an invalid alternate setting throws a range error.: FAIL
/webusb/usbConfiguration.https.any.html
    Can construct a USBConfiguration.: FAIL
    Constructing a USBConfiguration with an invalid configuration value throws a range error.: FAIL
/webusb/usbConfiguration.https.any.worker.html
    Can construct a USBConfiguration.: FAIL
    Constructing a USBConfiguration with an invalid configuration value throws a range error.: FAIL
/webusb/usbDevice.https.any.html
    a device configuration value can be set again: FAIL
    an interface can be claimed multiple times: FAIL
    an interface can be released multiple times: FAIL
    can issue all types of IN control transfers: FAIL
    can issue all types of OUT control transfers: FAIL
    control transfers to a non-existant interface reject: FAIL
    control transfers with a invalid recipient type reject: FAIL
    control transfers with a invalid request type reject: FAIL
    device operations reject if an device state change is in progress: FAIL
    device operations reject if an interface state change is in progress: FAIL
/webusb/usbDevice.https.any.worker.html
    a device configuration value can be set again: FAIL
    an interface can be claimed multiple times: FAIL
    an interface can be released multiple times: FAIL
    can issue all types of IN control transfers: FAIL
    can issue all types of OUT control transfers: FAIL
    control transfers to a non-existant interface reject: FAIL
    control transfers with a invalid recipient type reject: FAIL
    control transfers with a invalid request type reject: FAIL
    device operations reject if an device state change is in progress: FAIL
    device operations reject if an interface state change is in progress: FAIL
/webusb/usbEndpoint.https.any.html
    Can construct a USBEndpoint.: FAIL
    Constructing a USBEndpoint with an invalid endpoint number  throws a range error.: FAIL
/webusb/usbEndpoint.https.any.worker.html
    Can construct a USBEndpoint.: FAIL
    Constructing a USBEndpoint with an invalid endpoint number  throws a range error.: FAIL
/webusb/usbInterface.https.any.html
    Can construct a USBInterface.: FAIL
    Constructing a USBInterface with an invalid interface number throws a range error.: FAIL
    The alternate attribute of USBInterface returns null if the interfacehas not been claimed.: FAIL
    The alternate attribute of USBInterface returns the active alternate interface.: FAIL
/webusb/usbInterface.https.any.worker.html
    Can construct a USBInterface.: FAIL
    Constructing a USBInterface with an invalid interface number throws a range error.: FAIL
    The alternate attribute of USBInterface returns null if the interfacehas not been claimed.: FAIL
    The alternate attribute of USBInterface returns the active alternate interface.: FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/fb0565c89c90
[wpt PR 12678] - Improve Code Coverage for WebUSB, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/57b503101897
[wpt PR 12678] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/fb0565c89c90
https://hg.mozilla.org/mozilla-central/rev/57b503101897
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.