| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 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 deviceAddress = '11:12:13:14:15:16'; |
| 6 |
| 7 function testConnect() { |
| 8 chrome.bluetoothPrivate.connect(deviceAddress, function(result1) { |
| 9 chrome.test.assertEq('success', result1); |
| 10 chrome.bluetoothPrivate.connect(deviceAddress, function(result2) { |
| 11 chrome.test.assertNoLastError(); |
| 12 chrome.test.assertEq('alreadyConnected', result2); |
| 13 chrome.test.succeed(); |
| 14 }); |
| 15 }); |
| 16 } |
| 17 |
| 18 chrome.test.runTests([testConnect]); |
| OLD | NEW |