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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/webusb/resources/check-availability.html

Issue 2815003005: Integrate WebUSB with Feature Policy (Closed)
Patch Set: Rebased Created 3 years, 7 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/external/wpt/webusb/resources/check-availability.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/webusb/resources/check-availability.html b/third_party/WebKit/LayoutTests/external/wpt/webusb/resources/check-availability.html
new file mode 100644
index 0000000000000000000000000000000000000000..f1e3bb53cfe58dce844b7b57d5b1a2c0378df688
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/webusb/resources/check-availability.html
@@ -0,0 +1,9 @@
+<script>
+'use strict';
+
+Promise.resolve().then(() => navigator.usb.getDevices()).then(devices => {
+ window.parent.postMessage('#OK', '*');
+}, error => {
+ window.parent.postMessage('#' + error.name, '*');
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698