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

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

Issue 980023002: Move device/usb classes from the FILE thread to UI thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add more thread assertions. Created 5 years, 8 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
« no previous file with comments | « extensions/shell/browser/shell_device_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2a39adad4ca1bb0584142c7333cec4f1be845292..e709fff913485533687bb010aec093762bbe2592 100644
--- a/extensions/test/data/api_test/usb/reset_device/test.js
+++ b/extensions/test/data/api_test/usb/reset_device/test.js
@@ -19,10 +19,10 @@ function resetDevice() {
usb.resetDevice(devices[0], function(result) {
chrome.test.assertLastError(
'Error resetting the device. The device has been closed.');
- chrome.test.assertEq(result, false);
+ chrome.test.assertEq(false, result);
usb.interruptTransfer(devices[0], transfer, function(result) {
- chrome.test.assertEq(result, undefined);
- chrome.test.assertLastError('No such device.');
+ chrome.test.assertEq(undefined, result);
+ chrome.test.assertLastError('No such connection.');
chrome.test.succeed();
});
});
« no previous file with comments | « extensions/shell/browser/shell_device_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698