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.
5 function testGetDevices() {
6 chrome.test.assertEq(2, devices.length);
7 chrome.test.assertEq('d1', devices[0].name);
8 chrome.test.assertEq('d2', devices[1].name);
10 chrome.test.succeed();
15 function failOnError() {
16 if (chrome.runtime.lastError) {
17 chrome.test.fail(chrome.runtime.lastError.message);
21 chrome.bluetooth.getDevices(
25 chrome.test.sendMessage('ready',
27 chrome.test.runTests([testGetDevices]);