OLD | NEW |
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 controlTransfer() { | 8 function controlTransfer() { |
9 usb.findDevices({vendorId: 0, productId: 0}, function (devices) { | 9 usb.findDevices({vendorId: 0, productId: 0}, function (devices) { |
10 var device = devices[0]; | 10 var device = devices[0]; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 isoTransfer.packetLength = 1; | 62 isoTransfer.packetLength = 1; |
63 | 63 |
64 usb.isochronousTransfer(device, isoTransfer, function (result) { | 64 usb.isochronousTransfer(device, isoTransfer, function (result) { |
65 chrome.test.succeed(); | 65 chrome.test.succeed(); |
66 }); | 66 }); |
67 }); | 67 }); |
68 }, | 68 }, |
69 ]; | 69 ]; |
70 | 70 |
71 chrome.test.runTests(tests); | 71 chrome.test.runTests(tests); |
OLD | NEW |