OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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 GEN('#if defined(OS_CHROMEOS)'); | 5 GEN('#if defined(OS_CHROMEOS)'); |
6 | 6 |
7 GEN_INCLUDE(['../options_browsertest_base.js']); | 7 GEN_INCLUDE(['../options_browsertest_base.js']); |
8 | 8 |
9 function BluetoothWebUITestAsync() {} | 9 function BluetoothWebUITestAsync() {} |
10 | 10 |
11 BluetoothWebUITestAsync.prototype = { | 11 BluetoothWebUITestAsync.prototype = { |
12 __proto__: OptionsBrowsertestBase.prototype, | 12 __proto__: OptionsBrowsertestBase.prototype, |
13 | 13 |
14 /** @override */ | 14 /** @override */ |
15 isAsync: true, | 15 isAsync: true, |
16 | 16 |
17 /** | 17 /** |
18 * Start tests from the main-settings page. | 18 * Start tests from the main-settings page. |
19 */ | 19 */ |
20 browsePreload: 'chrome://settings-frame/', | 20 browsePreload: 'chrome://settings-frame/', |
21 | 21 |
22 // These entries match the fake entries in FakeBluetoothDeviceClient. | 22 // These entries match the fake entries in FakeBluetoothDeviceClient. |
23 fakePairedDevice: { | 23 fakePairedDevice: { |
24 address: '00:11:22:33:44:55', | 24 address: '00:11:22:33:44:55', |
25 connectable: true, | 25 connectable: true, |
26 connected: false, | 26 connected: false, |
27 name: 'Fake Device (alias)', | 27 name: 'Fake Device (name)', |
28 paired: true | 28 paired: true |
29 }, | 29 }, |
30 | 30 |
31 fakePairedDevice2: { | 31 fakePairedDevice2: { |
32 address: '20:7D:74:00:00:04', | 32 address: '20:7D:74:00:00:04', |
33 connectable: false, | 33 connectable: false, |
34 connected: false, | 34 connected: false, |
35 name: 'Paired Unconnectable Device (alias)', | 35 name: 'Paired Unconnectable Device (name)', |
36 paired: true | 36 paired: true |
37 }, | 37 }, |
38 | 38 |
39 fakeUnpairedDevice: { | 39 fakeUnpairedDevice: { |
40 address: '28:CF:DA:00:00:00', | 40 address: '28:CF:DA:00:00:00', |
41 connectable: true, | 41 connectable: true, |
42 connected: false, | 42 connected: false, |
43 name: 'Bluetooth 2.0 Mouse', | 43 name: 'Bluetooth 2.0 Mouse', |
44 paired: false | 44 paired: false |
45 }, | 45 }, |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 assertEquals(pairDeviceDialogSize, nodeCount(pairDeviceDialog)); | 431 assertEquals(pairDeviceDialogSize, nodeCount(pairDeviceDialog)); |
432 } | 432 } |
433 | 433 |
434 testDone(); | 434 testDone(); |
435 }.bind(this)); | 435 }.bind(this)); |
436 }.bind(this)); | 436 }.bind(this)); |
437 }.bind(this)); | 437 }.bind(this)); |
438 }); | 438 }); |
439 | 439 |
440 GEN('#endif'); | 440 GEN('#endif'); |
OLD | NEW |