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

Unified Diff: third_party/WebKit/LayoutTests/usb/usbDevice.html

Issue 1820173002: Close USB device connections when the page is hidden. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased and fixed nit. Created 4 years, 9 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/usbDevice.html
diff --git a/third_party/WebKit/LayoutTests/usb/usbDevice.html b/third_party/WebKit/LayoutTests/usb/usbDevice.html
index 3fefee2ca5a03950503373d17a024e25dae1b85f..e611148ddf9d09b43377a4f104d6d6076353b22e 100644
--- a/third_party/WebKit/LayoutTests/usb/usbDevice.html
+++ b/third_party/WebKit/LayoutTests/usb/usbDevice.html
@@ -7,16 +7,6 @@
<script>
'use strict';
-function assertRejectsWithError(promise, name, message) {
- return promise.then(() => {
- assert_unreached('expected promise to reject with ' + name);
- }, error => {
- assert_equals(error.name, name);
- if (message !== undefined)
- assert_equals(error.message, message);
- });
-}
-
function assertRejectsWithNotFoundError(promise) {
return assertRejectsWithError(promise, 'NotFoundError');
}
« no previous file with comments | « third_party/WebKit/LayoutTests/usb/resources/usb-helpers.js ('k') | third_party/WebKit/Source/modules/webusb/USBDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698