OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 address = '11:12:13:14:15:16'; | 5 var address = '11:12:13:14:15:16'; |
6 var uuid = '8e3ad063-db38-4289-aa8f-b30e4223cf40'; | 6 var uuid = '8e3ad063-db38-4289-aa8f-b30e4223cf40'; |
7 | 7 |
8 function testConnect() { | 8 function testConnect() { |
9 chrome.test.assertEq(1, sockets.length); | 9 chrome.test.assertEq(1, sockets.length); |
10 chrome.test.assertEq(socketId, sockets[0].socketId); | 10 chrome.test.assertEq(socketId, sockets[0].socketId); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 socketId = socket.socketId; | 83 socketId = socket.socketId; |
84 | 84 |
85 // Run some error checks. | 85 // Run some error checks. |
86 runSocketErrorTests( | 86 runSocketErrorTests( |
87 function() { | 87 function() { |
88 chrome.bluetoothSocket.disconnect(socket.socketId); | 88 chrome.bluetoothSocket.disconnect(socket.socketId); |
89 chrome.test.sendMessage('ready', startTests); | 89 chrome.test.sendMessage('ready', startTests); |
90 }); | 90 }); |
91 }); | 91 }); |
92 }); | 92 }); |
OLD | NEW |