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

Side by Side Diff: chrome/test/data/extensions/api_test/usb/device_handling/test.js

Issue 11577017: Update USB extension API with suggestions from review. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Picking up IDL lexer changes. Created 8 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var usb = chrome.usb; 5 var usb = chrome.usb;
6 6
7 var tests = [ 7 var tests = [
8 function explicitCloseDevice() { 8 function explicitCloseDevice() {
9 usb.findDevices(0, 0, {}, function(devices) { 9 usb.findDevices({vendorId: 0, productId: 0}, function(devices) {
10 usb.closeDevice(devices[0]); 10 usb.closeDevice(devices[0]);
11 chrome.test.succeed(); 11 chrome.test.succeed();
12 }); 12 });
13 }, 13 },
14 ]; 14 ];
15 15
16 chrome.test.runTests(tests); 16 chrome.test.runTests(tests);
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/usb.idl ('k') | chrome/test/data/extensions/api_test/usb/transfer_event/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698