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

Unified Diff: third_party/WebKit/LayoutTests/usb/usbDevice-iframe.html

Issue 2594213002: Mojo JS bindings: change usb layout tests to use the new "bindings" module. (Closed)
Patch Set: . Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/usb/resources/usb-helpers.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/usb/usbDevice-iframe.html
diff --git a/third_party/WebKit/LayoutTests/usb/usbDevice-iframe.html b/third_party/WebKit/LayoutTests/usb/usbDevice-iframe.html
index 347b99719d0c3ffe6a97fa6062772c091fa6d89f..f275c44602802a45e6c9d8313ea4625ed6cf5a4b 100644
--- a/third_party/WebKit/LayoutTests/usb/usbDevice-iframe.html
+++ b/third_party/WebKit/LayoutTests/usb/usbDevice-iframe.html
@@ -38,7 +38,8 @@ function runIframeDisconnectTest(usb, onDeviceConnected) {
(frameInterfaces) => {
frameInterfaces.addInterfaceOverrideForTesting(
usb.DeviceManager.name,
- pipe => { mockDeviceManager.bindToPipe(pipe); });
+ handle => { mockDeviceManager.bindingSet.addBinding(
+ mockDeviceManager, handle); });
iframe.contentWindow.postMessage('Ready', '*');
});
}
@@ -83,7 +84,8 @@ usb_test(usb => {
(frameInterfaces) => {
frameInterfaces.addInterfaceOverrideForTesting(
usb.DeviceManager.name,
- pipe => { mockDeviceManager.bindToPipe(pipe); });
+ handle => { mockDeviceManager.bindingSet.addBinding(
+ mockDeviceManager, handle); });
iframe.contentWindow.postMessage('Ready', '*');
});
}
« no previous file with comments | « third_party/WebKit/LayoutTests/usb/resources/usb-helpers.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698