Upstream version 11.39.266.0
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / usb / list_interfaces / test.js
1 // Copyright (c) 2013 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.usb;
6
7 var tests = [
8   function listInterfaces() {
9     usb.findDevices({vendorId: 0, productId: 0}, function (devices) {
10       var device = devices[0];
11       usb.listInterfaces(device, function (result) {
12         chrome.test.succeed();
13       });
14     });
15   }
16 ];
17
18 chrome.test.runTests(tests);