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

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

Issue 2775323003: Refactor WebUSB LayoutTests to separate out the Mojo service mocks (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <script src="../resources/mojo-helpers.js"></script>
5 <script src="resources/fake-devices.js"></script>
6 <script src="resources/usb-helpers.js"></script>
7 <script>
8 'use strict';
9
10 usb_test(usb => {
11 assert_true(usb instanceof Object);
12 assert_true(usb.DeviceManager instanceof Object);
13 assert_true(usb.Device instanceof Object);
14 assert_true(usb.mockDeviceManager instanceof Object);
15 assert_true(usb.mockChooserService instanceof Object);
16 }, 'USB Mojo bindings and mock interfaces are available to tests.')
17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698