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

Issue 2775323003: Refactor WebUSB LayoutTests to separate out the Mojo service mocks (Closed)

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

Description

Refactor WebUSB LayoutTests to separate out the Mojo service mocks In preparation for being able to upstream the existing WebUSB tests to the Web Platform Tests repository this patch splits out the Mojo service mocks into webusb-test.js. This file is a polyfil for a fictional "WebUSB Test API" that could in theory be implemented by any browser (an idea borrowed from a proposed plan for Web Bluetooth). BUG=705734 Review-Url: https://codereview.chromium.org/2775323003 Cr-Commit-Position: refs/heads/master@{#460978} Committed: https://chromium.googlesource.com/chromium/src/+/e1edfbbb4b3a192e210c031628e4f12aa93057cd

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+925 lines, -640 lines) Patch
D third_party/WebKit/LayoutTests/usb/mock-services.html View 1 chunk +0 lines, -17 lines 0 comments Download
M third_party/WebKit/LayoutTests/usb/resources/fake-devices.js View 1 chunk +89 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/usb/resources/usb-helpers.js View 3 chunks +32 lines, -416 lines 0 comments Download
A third_party/WebKit/LayoutTests/usb/resources/webusb-test.js View 1 chunk +565 lines, -0 lines 7 comments Download
A third_party/WebKit/LayoutTests/usb/test-polyfil.html View 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/usb/usb.html View 7 chunks +32 lines, -41 lines 0 comments Download
M third_party/WebKit/LayoutTests/usb/usb-connection-event.html View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/usb/usbDevice.html View 34 chunks +133 lines, -96 lines 0 comments Download
M third_party/WebKit/LayoutTests/usb/usbDevice-iframe.html View 1 chunk +60 lines, -67 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (9 generated)
Reilly Grant (use Gerrit)
Please take a look. Since I anticipated this would be easier for WebUSB than Web ...
3 years, 8 months ago (2017-03-27 22:52:49 UTC) #4
ortuno
Thanks for doing this! This looks exactly like what I had in mind :) https://codereview.chromium.org/2775323003/diff/1/third_party/WebKit/LayoutTests/usb/resources/webusb-test.js ...
3 years, 8 months ago (2017-03-29 00:12:30 UTC) #7
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2775323003/diff/1/third_party/WebKit/LayoutTests/usb/resources/webusb-test.js File third_party/WebKit/LayoutTests/usb/resources/webusb-test.js (right): https://codereview.chromium.org/2775323003/diff/1/third_party/WebKit/LayoutTests/usb/resources/webusb-test.js#newcode16 third_party/WebKit/LayoutTests/usb/resources/webusb-test.js:16: // DOMString addFakeDevice(FakeUSBDeviceInit deviceInit); On 2017/03/29 00:12:30, ortuno wrote: ...
3 years, 8 months ago (2017-03-29 00:29:54 UTC) #8
ortuno
https://codereview.chromium.org/2775323003/diff/1/third_party/WebKit/LayoutTests/usb/resources/webusb-test.js File third_party/WebKit/LayoutTests/usb/resources/webusb-test.js (right): https://codereview.chromium.org/2775323003/diff/1/third_party/WebKit/LayoutTests/usb/resources/webusb-test.js#newcode459 third_party/WebKit/LayoutTests/usb/resources/webusb-test.js:459: gin.define('WebUSB Test Mocks', [ On 2017/03/29 at 00:29:53, Reilly ...
3 years, 8 months ago (2017-03-29 20:56:00 UTC) #9
Reilly Grant (use Gerrit)
+yzshen@ for the Mojo interface override in normal Chrome question. https://codereview.chromium.org/2775323003/diff/1/third_party/WebKit/LayoutTests/usb/resources/webusb-test.js File third_party/WebKit/LayoutTests/usb/resources/webusb-test.js (right): https://codereview.chromium.org/2775323003/diff/1/third_party/WebKit/LayoutTests/usb/resources/webusb-test.js#newcode459 ...
3 years, 8 months ago (2017-03-29 21:04:14 UTC) #11
ortuno
https://codereview.chromium.org/2775323003/diff/1/third_party/WebKit/LayoutTests/usb/resources/webusb-test.js File third_party/WebKit/LayoutTests/usb/resources/webusb-test.js (right): https://codereview.chromium.org/2775323003/diff/1/third_party/WebKit/LayoutTests/usb/resources/webusb-test.js#newcode459 third_party/WebKit/LayoutTests/usb/resources/webusb-test.js:459: gin.define('WebUSB Test Mocks', [ On 2017/03/29 at 21:04:14, Reilly ...
3 years, 8 months ago (2017-03-29 21:12:57 UTC) #12
ortuno
lgtm!
3 years, 8 months ago (2017-03-30 22:19:07 UTC) #13
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/2775323003/1
3 years, 8 months ago (2017-03-30 23:26:53 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/e1edfbbb4b3a192e210c031628e4f12aa93057cd
3 years, 8 months ago (2017-03-31 01:23:04 UTC) #18
ortuno
3 years, 8 months ago (2017-03-31 05:02:06 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/2791573002/ by ortuno@chromium.org.

The reason for reverting is: Breaks leak bot:

https://uberchromegw.corp.google.com/i/chromium.webkit/builders/WebKit%20Linu...

* usb/test-polyfil.html
* usb/usb-connection-event.html
* usb/usb.html
* usb/usbDevice-iframe.html
* usb/usbDevice.html

seem to be leaking :(.

Powered by Google App Engine
This is Rietveld 408576698