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

Unified Diff: third_party/WebKit/LayoutTests/usb/mock-services.html

Issue 1726943002: First set of WebUSB layout tests with Mojo service mocks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mojo-helpers.js's define function. Created 4 years, 10 months 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
Index: third_party/WebKit/LayoutTests/usb/mock-services.html
diff --git a/third_party/WebKit/LayoutTests/usb/mock-services.html b/third_party/WebKit/LayoutTests/usb/mock-services.html
new file mode 100644
index 0000000000000000000000000000000000000000..99a0d87b999e25d656b0afeef8ebd5310da7d53f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/usb/mock-services.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="../resources/mojo-helpers.js"></script>
+<script src="resources/device.mojom.js"></script>
+<script src="resources/device_manager.mojom.js"></script>
+<script src="resources/permission_provider.mojom.js"></script>
+<script src="resources/fake-devices.js"></script>
+<script src="resources/usb-helpers.js"></script>
+<script>
+'use strict';
+
+usb_test(usb => {
+ assert_true(usb instanceof Object);
+ assert_true(usb.DeviceManager instanceof Object);
+ assert_true(usb.Device instanceof Object);
+ assert_true(usb.PermissionProvider instanceof Object);
+ assert_true(usb.mockDeviceManager instanceof Object);
+}, 'USB Mojo bindings and mock interfaces are available to tests.')
+</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/resources/mojo-helpers.js ('k') | third_party/WebKit/LayoutTests/usb/resources/fake-devices.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698