OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 var usb = chrome.experimental.usb; |
| 6 |
| 7 var tests = [ |
| 8 function implicitCloseDevice() { |
| 9 usb.findDevice(0, 0, {}, function(device) { |
| 10 chrome.test.succeed(); |
| 11 }); |
| 12 }, |
| 13 function explicitCloseDevice() { |
| 14 usb.findDevice(0, 0, {}, function(device) { |
| 15 usb.closeDevice(device); |
| 16 chrome.test.succeed(); |
| 17 }); |
| 18 }, |
| 19 ]; |
| 20 |
| 21 chrome.test.runTests(tests); |
OLD | NEW |