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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/resources/chromium/webusb-test.js

Issue 2789723003: Migrate WebUSB LayoutTests into external/wpt (Closed)
Patch Set: Add README.md and more comments explaining the polyfill Created 3 years, 6 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
1 'use strict'; 1 'use strict';
2 2
3 // This polyfill library implements the WebUSB Test API as specified here: 3 // This polyfill library implements the WebUSB Test API as specified here:
4 // https://wicg.github.io/webusb/test/ 4 // https://wicg.github.io/webusb/test/
5 5
6 (() => { 6 (() => {
7 7
8 // These variables are logically members of the USBTest class but are defined 8 // These variables are logically members of the USBTest class but are defined
9 // here to hide them from being visible as fields of navigator.usb.test. 9 // here to hide them from being visible as fields of navigator.usb.test.
10 let internal = { 10 let internal = {
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 internal.chooser.setChosenDevice(null); 510 internal.chooser.setChosenDevice(null);
511 resolve(); 511 resolve();
512 }, 0); 512 }, 0);
513 }); 513 });
514 } 514 }
515 } 515 }
516 516
517 navigator.usb.test = new USBTest(); 517 navigator.usb.test = new USBTest();
518 518
519 })(); 519 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698