New issue
Advanced search Search tips

Issue 854831 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Add web tests to increase code coverage in third_party/blink/renderer/modules/webusb

Project Member Reported by reillyg@chromium.org, Jun 20 2018

Issue description

Lack of code coverage in third_party/blink/renderer/modules/webusb equates pretty strongly to missing web tests for WebUSB. For example, there is currently no test which calls controlTransferOut without the |data| parameter or any test which passes an ArrayBuffer rather than an ArrayBufferView to methods that can take either.

Coverage reports: https://chromium-coverage.appspot.com/

For developers looking to make this their first contribution, please don't try to bring this directory to 100% all in one go. Pick a single function or branch that is untaken and add a new test that exercises it. Look at existing tests in third_party/WebKit/LayoutTests/external/wpt/webusb for examples.
 
Cc: odejesush@chromium.org
Owner: odejesush@chromium.org
Status: Assigned (was: Available)
Project Member

Comment 3 by bugdroid1@chromium.org, Aug 28

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ad9bd4bc65b215274e80f99c90e028f76d8b9470

commit ad9bd4bc65b215274e80f99c90e028f76d8b9470
Author: Ovidio Henriquez <odejesush@chromium.org>
Date: Tue Aug 28 23:32:53 2018

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
Commit-Queue: Ovidio Henriquez <odejesush@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#586930}
[modify] https://crrev.com/ad9bd4bc65b215274e80f99c90e028f76d8b9470/third_party/WebKit/LayoutTests/external/wpt/webusb/usb-disabled-by-feature-policy.https.sub.html
[modify] https://crrev.com/ad9bd4bc65b215274e80f99c90e028f76d8b9470/third_party/WebKit/LayoutTests/external/wpt/webusb/usb.https.window.js
[add] https://crrev.com/ad9bd4bc65b215274e80f99c90e028f76d8b9470/third_party/WebKit/LayoutTests/external/wpt/webusb/usbAlternateInterface.https.any.js
[add] https://crrev.com/ad9bd4bc65b215274e80f99c90e028f76d8b9470/third_party/WebKit/LayoutTests/external/wpt/webusb/usbConfiguration.https.any.js
[modify] https://crrev.com/ad9bd4bc65b215274e80f99c90e028f76d8b9470/third_party/WebKit/LayoutTests/external/wpt/webusb/usbDevice.https.any.js
[add] https://crrev.com/ad9bd4bc65b215274e80f99c90e028f76d8b9470/third_party/WebKit/LayoutTests/external/wpt/webusb/usbEndpoint.https.any.js
[add] https://crrev.com/ad9bd4bc65b215274e80f99c90e028f76d8b9470/third_party/WebKit/LayoutTests/external/wpt/webusb/usbInterface.https.any.js

Sign in to add a comment