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

Unified Diff: third_party/WebKit/LayoutTests/usb/resources/open-in-iframe.html

Issue 2789723003: Migrate WebUSB LayoutTests into external/wpt (Closed)
Patch Set: Upstream tests that will work in stable Chrome 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/usb/resources/open-in-iframe.html
diff --git a/third_party/WebKit/LayoutTests/usb/resources/open-in-iframe.html b/third_party/WebKit/LayoutTests/usb/resources/open-in-iframe.html
deleted file mode 100644
index 83c5a309b41aadcd5baa6a872850841b7a438798..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/usb/resources/open-in-iframe.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<!DOCTYPE html>
-<script>
-'use strict';
-window.onmessage = messageEvent => {
- if (messageEvent.data === 'Ready') {
- navigator.usb.addEventListener('connect', connectEvent => {
- connectEvent.device.open().then(() => {
- parent.postMessage('Success', '*');
- }).catch(error => {
- console.log(error);
- parent.postMessage('FAIL: open rejected ' + error, '*');
- });
- });
- parent.postMessage('Ready', '*');
- }
-};
-</script>

Powered by Google App Engine
This is Rietveld 408576698