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

Unified Diff: extensions/test/data/api_test/usb/reset_device/test.js

Issue 826283002: Add support for sending a USB SET_CONFIGURATION request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 11 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: extensions/test/data/api_test/usb/reset_device/test.js
diff --git a/extensions/test/data/api_test/usb/reset_device/test.js b/extensions/test/data/api_test/usb/reset_device/test.js
index 9bc4bc491020afe74f52862685363bf25117565e..2a39adad4ca1bb0584142c7333cec4f1be845292 100644
--- a/extensions/test/data/api_test/usb/reset_device/test.js
+++ b/extensions/test/data/api_test/usb/reset_device/test.js
@@ -17,13 +17,12 @@ function resetDevice() {
usb.interruptTransfer(devices[0], transfer, function(result) {
// This is designed to fail.
usb.resetDevice(devices[0], function(result) {
+ chrome.test.assertLastError(
+ 'Error resetting the device. The device has been closed.');
chrome.test.assertEq(result, false);
usb.interruptTransfer(devices[0], transfer, function(result) {
chrome.test.assertEq(result, undefined);
- chrome.test.assertEq(
- chrome.runtime.lastError && chrome.runtime.lastError.message,
- 'No such device.'
- );
+ chrome.test.assertLastError('No such device.');
chrome.test.succeed();
});
});

Powered by Google App Engine
This is Rietveld 408576698