Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Issue 2789723003: Migrate WebUSB LayoutTests into external/wpt (Closed)

Created:
3 years, 8 months ago by Reilly Grant (use Gerrit)
Modified:
3 years, 6 months ago
CC:
blink-reviews, blink-reviews-w3ctests_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Migrate WebUSB LayoutTests into external/wpt This test moves all the tests from third_party/WebKit/LayoutTests/usb to third_party/WebKit/LayoutTests/external/wpt/webusb. The WebUSB Test API polyfill is included in a new resources/chromium directory and loaded automatically when the tests are run in a Chromium-based browser with the --enable-blink-features=MojoJS,MojoJSTest flag set. BUG=705734 Review-Url: https://codereview.chromium.org/2789723003 Cr-Commit-Position: refs/heads/master@{#481732} Committed: https://chromium.googlesource.com/chromium/src/+/a58aca05fb59a513a0857538de9e79eea712d4e4

Patch Set 1 #

Total comments: 13

Patch Set 2 : Addressed comments from ortuno@ and foolip@ #

Total comments: 11

Patch Set 3 : Rebased #

Total comments: 2

Patch Set 4 : Add back OWNERS files #

Patch Set 5 : Rebased #

Patch Set 6 : Upstream tests that will work in stable Chrome #

Total comments: 14

Patch Set 7 : Rebased #

Patch Set 8 : Add README.md and more comments explaining the polyfill #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9895 lines, -1842 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/enable-network-service View 1 2 3 4 5 6 2 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/enable-slimming-paint-v2 View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/SlowTests View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/resources/chromium/README.md View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/resources/chromium/chooser_service.mojom.js View 1 2 3 4 5 1 chunk +281 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device.mojom.js View 1 2 3 4 5 1 chunk +3452 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js View 1 2 3 4 5 1 chunk +850 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/resources/chromium/mojo_bindings.js View 1 2 3 4 5 1 chunk +5110 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/resources/chromium/webusb-test.js View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/webusb/OWNERS View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/webusb/idlharness.https.html View 1 2 3 4 5 6 2 chunks +39 lines, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/webusb/resources/fake-devices.js View 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/webusb/resources/open-in-iframe.html View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/webusb/resources/usb-helpers.js View 1 2 3 4 5 6 7 2 chunks +52 lines, -19 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/webusb/usb-manual.https.html View 1 2 5 chunks +18 lines, -18 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/webusb/usbConnectionEvent.https.html View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/webusb/usbDevice-iframe.https.html View 1 2 3 4 5 1 chunk +51 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/webusb/usbDevice.https.html View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/webusb/usbInTransferResult.https.html View 1 chunk +2 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/webusb/usbIsochronousInTransferPacket.https.html View 1 chunk +2 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/webusb/usbIsochronousInTransferResult.https.html View 1 chunk +2 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/webusb/usbIsochronousOutTransferPacket.https.html View 1 chunk +2 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/webusb/usbIsochronousOutTransferResult.https.html View 1 chunk +2 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/webusb/usbOutTransferResult.https.html View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/resources/testharnessreport.js View 1 2 3 4 5 3 chunks +8 lines, -5 lines 0 comments Download
D third_party/WebKit/LayoutTests/usb/resources/fake-devices.js View 1 2 3 4 1 chunk +0 lines, -90 lines 0 comments Download
D third_party/WebKit/LayoutTests/usb/resources/open-in-iframe.html View 1 chunk +0 lines, -17 lines 0 comments Download
D third_party/WebKit/LayoutTests/usb/resources/usb-helpers.js View 1 2 3 4 5 1 chunk +0 lines, -95 lines 0 comments Download
D third_party/WebKit/LayoutTests/usb/resources/webusb-test.js View 1 2 3 4 5 1 chunk +0 lines, -13 lines 0 comments Download
D third_party/WebKit/LayoutTests/usb/resources/webusb-test-impl.js View 1 2 3 4 5 1 chunk +0 lines, -519 lines 0 comments Download
D third_party/WebKit/LayoutTests/usb/test-polyfil.html View 2 1 chunk +0 lines, -11 lines 0 comments Download
D third_party/WebKit/LayoutTests/usb/usb.html View 1 2 1 chunk +0 lines, -118 lines 0 comments Download
D third_party/WebKit/LayoutTests/usb/usb-connection-event.html View 1 2 3 4 5 6 1 chunk +0 lines, -23 lines 0 comments Download
D third_party/WebKit/LayoutTests/usb/usb-in-transfer-result.html View 1 chunk +0 lines, -31 lines 0 comments Download
D third_party/WebKit/LayoutTests/usb/usb-isochronous-in-transfer-packet.html View 1 chunk +0 lines, -33 lines 0 comments Download
D third_party/WebKit/LayoutTests/usb/usb-isochronous-in-transfer-result.html View 1 chunk +0 lines, -42 lines 0 comments Download
D third_party/WebKit/LayoutTests/usb/usb-isochronous-out-transfer-packet.html View 1 chunk +0 lines, -26 lines 0 comments Download
D third_party/WebKit/LayoutTests/usb/usb-isochronous-out-transfer-result.html View 1 chunk +0 lines, -24 lines 0 comments Download
D third_party/WebKit/LayoutTests/usb/usb-out-transfer-result.html View 1 chunk +0 lines, -24 lines 0 comments Download
D third_party/WebKit/LayoutTests/usb/usbDevice.html View 1 2 1 chunk +0 lines, -655 lines 0 comments Download
M third_party/WebKit/LayoutTests/usb/usbDevice-iframe.html View 1 2 3 4 5 3 chunks +10 lines, -53 lines 0 comments Download

Messages

Total messages: 69 (28 generated)
Reilly Grant (use Gerrit)
I'm doing something new and interesting here so I'd appreciate folks taking a careful look ...
3 years, 8 months ago (2017-03-31 01:25:54 UTC) #5
ortuno
+nzolghadr for question about input test API. https://codereview.chromium.org/2789723003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/webusb/resources/fake-devices.js File third_party/WebKit/LayoutTests/external/wpt/webusb/resources/fake-devices.js (right): https://codereview.chromium.org/2789723003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/webusb/resources/fake-devices.js#newcode4 third_party/WebKit/LayoutTests/external/wpt/webusb/resources/fake-devices.js:4: return define('Fake ...
3 years, 8 months ago (2017-04-03 01:47:19 UTC) #9
Navid Zolghadr
https://codereview.chromium.org/2789723003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/webusb/resources/usb-helpers.js File third_party/WebKit/LayoutTests/external/wpt/webusb/resources/usb-helpers.js (right): https://codereview.chromium.org/2789723003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/webusb/resources/usb-helpers.js#newcode45 third_party/WebKit/LayoutTests/external/wpt/webusb/resources/usb-helpers.js:45: // TODO(reillyg): Remove when jyasskin upstreams this to testharness.js: ...
3 years, 8 months ago (2017-04-03 14:24:34 UTC) #10
ortuno
https://codereview.chromium.org/2789723003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/webusb/resources/usb-helpers.js File third_party/WebKit/LayoutTests/external/wpt/webusb/resources/usb-helpers.js (right): https://codereview.chromium.org/2789723003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/webusb/resources/usb-helpers.js#newcode45 third_party/WebKit/LayoutTests/external/wpt/webusb/resources/usb-helpers.js:45: // TODO(reillyg): Remove when jyasskin upstreams this to testharness.js: ...
3 years, 8 months ago (2017-04-03 23:22:30 UTC) #11
foolip
It looks like the automation bits are in fake-devices.js, usb-helpers.js and webusb-test.js. There is a ...
3 years, 8 months ago (2017-04-05 06:03:32 UTC) #12
Reilly Grant (use Gerrit)
Addressed comments from ortuno@ and foolip@
3 years, 8 months ago (2017-04-05 18:39:16 UTC) #13
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2789723003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/webusb/resources/fake-devices.js File third_party/WebKit/LayoutTests/external/wpt/webusb/resources/fake-devices.js (right): https://codereview.chromium.org/2789723003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/webusb/resources/fake-devices.js#newcode4 third_party/WebKit/LayoutTests/external/wpt/webusb/resources/fake-devices.js:4: return define('Fake USB Devices', [ On 2017/04/03 01:47:19, ortuno ...
3 years, 8 months ago (2017-04-05 18:39:37 UTC) #15
ortuno
https://codereview.chromium.org/2789723003/diff/40001/third_party/WebKit/LayoutTests/SlowTests File third_party/WebKit/LayoutTests/SlowTests (right): https://codereview.chromium.org/2789723003/diff/40001/third_party/WebKit/LayoutTests/SlowTests#newcode352 third_party/WebKit/LayoutTests/SlowTests:352: crbug.com/592183 external/wpt/webusb/usbDevice.https.html [ Slow ] We might have to ...
3 years, 8 months ago (2017-04-06 01:14:06 UTC) #19
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2789723003/diff/40001/third_party/WebKit/LayoutTests/external/wpt/webusb/usb-manual.https.html File third_party/WebKit/LayoutTests/external/wpt/webusb/usb-manual.https.html (right): https://codereview.chromium.org/2789723003/diff/40001/third_party/WebKit/LayoutTests/external/wpt/webusb/usb-manual.https.html#newcode1 third_party/WebKit/LayoutTests/external/wpt/webusb/usb-manual.https.html:1: <!DOCTYPE html> On 2017/04/06 01:14:06, ortuno wrote: > I ...
3 years, 8 months ago (2017-04-06 01:52:32 UTC) #20
ortuno
https://codereview.chromium.org/2789723003/diff/40001/third_party/WebKit/LayoutTests/external/wpt/webusb/usb-manual.https.html File third_party/WebKit/LayoutTests/external/wpt/webusb/usb-manual.https.html (right): https://codereview.chromium.org/2789723003/diff/40001/third_party/WebKit/LayoutTests/external/wpt/webusb/usb-manual.https.html#newcode23 third_party/WebKit/LayoutTests/external/wpt/webusb/usb-manual.https.html:23: navigator.usb.test.addFakeDevice(fakeDeviceInit); On 2017/04/06 at 01:52:32, Reilly Grant wrote: > ...
3 years, 8 months ago (2017-04-06 02:51:47 UTC) #21
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2789723003/diff/40001/third_party/WebKit/LayoutTests/external/wpt/webusb/usb-manual.https.html File third_party/WebKit/LayoutTests/external/wpt/webusb/usb-manual.https.html (right): https://codereview.chromium.org/2789723003/diff/40001/third_party/WebKit/LayoutTests/external/wpt/webusb/usb-manual.https.html#newcode23 third_party/WebKit/LayoutTests/external/wpt/webusb/usb-manual.https.html:23: navigator.usb.test.addFakeDevice(fakeDeviceInit); On 2017/04/06 02:51:47, ortuno wrote: > On 2017/04/06 ...
3 years, 8 months ago (2017-04-06 06:53:13 UTC) #22
foolip
I like what I'm seeing, but this is now essentially blocked on reaching some kind ...
3 years, 8 months ago (2017-04-10 07:48:54 UTC) #23
Reilly Grant (use Gerrit)
Rebased
3 years, 8 months ago (2017-04-18 21:20:31 UTC) #24
Reilly Grant (use Gerrit)
I've rebased this patch on top of the changes suggested by ortuno@. foolip@, these tests ...
3 years, 8 months ago (2017-04-18 21:23:41 UTC) #25
ortuno
Code lgtm Though I think before we land this we have to sent out an ...
3 years, 8 months ago (2017-04-18 21:41:47 UTC) #28
Reilly Grant (use Gerrit)
I have begun specifying this test interface here: https://wicg.github.io/webusb/test/ In the process I have found ...
3 years, 8 months ago (2017-04-19 23:17:00 UTC) #31
foolip
https://codereview.chromium.org/2789723003/diff/60001/third_party/WebKit/LayoutTests/usb/OWNERS File third_party/WebKit/LayoutTests/usb/OWNERS (left): https://codereview.chromium.org/2789723003/diff/60001/third_party/WebKit/LayoutTests/usb/OWNERS#oldcode1 third_party/WebKit/LayoutTests/usb/OWNERS:1: # TEAM: device-dev@chromium.org On 2017/04/18 21:41:46, ortuno wrote: > ...
3 years, 8 months ago (2017-04-20 09:55:30 UTC) #32
Reilly Grant (use Gerrit)
Add back OWNERS files
3 years, 8 months ago (2017-04-20 23:16:04 UTC) #33
foolip
On 2017/04/19 23:17:00, Reilly Grant wrote: > I have begun specifying this test interface here: ...
3 years, 8 months ago (2017-04-21 16:18:18 UTC) #34
Reilly Grant (use Gerrit)
On 2017/04/21 16:18:18, foolip wrote: > On 2017/04/19 23:17:00, Reilly Grant wrote: > > I ...
3 years, 7 months ago (2017-05-02 23:04:28 UTC) #35
foolip
On 2017/05/02 23:04:28, Reilly Grant wrote: > On 2017/04/21 16:18:18, foolip wrote: > > On ...
3 years, 7 months ago (2017-05-03 15:36:02 UTC) #36
Reilly Grant (use Gerrit)
Rebased
3 years, 7 months ago (2017-05-19 23:16:20 UTC) #37
Reilly Grant (use Gerrit)
On 2017/05/03 15:36:02, foolip wrote: > On 2017/05/02 23:04:28, Reilly Grant wrote: > > On ...
3 years, 7 months ago (2017-05-19 23:17:22 UTC) #38
foolip
I'll be OOO for a while, if necessary please ask another reviewer.
3 years, 7 months ago (2017-05-24 11:48:56 UTC) #43
Reilly Grant (use Gerrit)
Upstream tests that will work in stable Chrome
3 years, 6 months ago (2017-06-20 01:29:13 UTC) #44
Reilly Grant (use Gerrit)
Please take another look as much has changed in this patch.
3 years, 6 months ago (2017-06-20 06:18:30 UTC) #50
ortuno
https://codereview.chromium.org/2789723003/diff/120001/third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js File third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js (right): https://codereview.chromium.org/2789723003/diff/120001/third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js#newcode1 third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
3 years, 6 months ago (2017-06-21 00:43:50 UTC) #51
foolip
Reilly, do you want to follow up on https://lists.w3.org/Archives/Public/public-test-infra/2017AprJun/0081.html to say that this is where ...
3 years, 6 months ago (2017-06-21 08:09:36 UTC) #52
foolip
Overall approach LGTM. I didn't review all of the tests, just the ones that I ...
3 years, 6 months ago (2017-06-21 08:23:30 UTC) #53
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2789723003/diff/120001/third_party/WebKit/LayoutTests/external/wpt/webusb/idlharness.https.html File third_party/WebKit/LayoutTests/external/wpt/webusb/idlharness.https.html (right): https://codereview.chromium.org/2789723003/diff/120001/third_party/WebKit/LayoutTests/external/wpt/webusb/idlharness.https.html#newcode22 third_party/WebKit/LayoutTests/external/wpt/webusb/idlharness.https.html:22: // Copied from https://wicg.github.io/webusb/#idl-index minus the On 2017/06/21 08:23:29, ...
3 years, 6 months ago (2017-06-21 21:35:16 UTC) #54
Reilly Grant (use Gerrit)
Rebased
3 years, 6 months ago (2017-06-22 20:57:42 UTC) #55
Reilly Grant (use Gerrit)
Add README.md and more comments explaining the polyfill
3 years, 6 months ago (2017-06-22 21:35:52 UTC) #56
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2789723003/diff/120001/third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js File third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js (right): https://codereview.chromium.org/2789723003/diff/120001/third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js#newcode1 third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
3 years, 6 months ago (2017-06-22 21:37:35 UTC) #57
ortuno
https://codereview.chromium.org/2789723003/diff/120001/third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js File third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js (right): https://codereview.chromium.org/2789723003/diff/120001/third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js#newcode1 third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
3 years, 6 months ago (2017-06-22 21:45:33 UTC) #58
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2789723003/diff/120001/third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js File third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js (right): https://codereview.chromium.org/2789723003/diff/120001/third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js#newcode1 third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
3 years, 6 months ago (2017-06-22 21:58:27 UTC) #59
ortuno
lgtm https://codereview.chromium.org/2789723003/diff/120001/third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js File third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js (right): https://codereview.chromium.org/2789723003/diff/120001/third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js#newcode1 third_party/WebKit/LayoutTests/external/wpt/resources/chromium/device_manager.mojom.js:1: // Copyright 2014 The Chromium Authors. All rights ...
3 years, 6 months ago (2017-06-22 22:07:41 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2789723003/160001
3 years, 6 months ago (2017-06-22 22:23:34 UTC) #63
foolip
https://codereview.chromium.org/2789723003/diff/120001/third_party/WebKit/LayoutTests/external/wpt/webusb/resources/usb-helpers.js File third_party/WebKit/LayoutTests/external/wpt/webusb/resources/usb-helpers.js (right): https://codereview.chromium.org/2789723003/diff/120001/third_party/WebKit/LayoutTests/external/wpt/webusb/resources/usb-helpers.js#newcode6 third_party/WebKit/LayoutTests/external/wpt/webusb/resources/usb-helpers.js:6: let loadChromiumResources = Promise.resolve().then(() => { On 2017/06/21 21:35:16, ...
3 years, 6 months ago (2017-06-22 22:30:38 UTC) #64
foolip
3 years, 6 months ago (2017-06-22 22:30:41 UTC) #65
foolip
https://codereview.chromium.org/2789723003/diff/120001/third_party/WebKit/LayoutTests/external/wpt/webusb/resources/usb-helpers.js File third_party/WebKit/LayoutTests/external/wpt/webusb/resources/usb-helpers.js (right): https://codereview.chromium.org/2789723003/diff/120001/third_party/WebKit/LayoutTests/external/wpt/webusb/resources/usb-helpers.js#newcode6 third_party/WebKit/LayoutTests/external/wpt/webusb/resources/usb-helpers.js:6: let loadChromiumResources = Promise.resolve().then(() => { On 2017/06/22 22:30:38, ...
3 years, 6 months ago (2017-06-22 22:52:19 UTC) #66
commit-bot: I haz the power
3 years, 6 months ago (2017-06-23 00:01:29 UTC) #69
Message was sent while issue was closed.
Committed patchset #8 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/a58aca05fb59a513a0857538de9e...

Powered by Google App Engine
This is Rietveld 408576698