| 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 function BluetoothWebUITest() {} | 7 function BluetoothWebUITest() {} |
| 8 | 8 |
| 9 BluetoothWebUITest.prototype = { | 9 BluetoothWebUITest.prototype = { |
| 10 __proto__: testing.Test.prototype, | 10 __proto__: testing.Test.prototype, |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * Start tests from the main-settings page. | 13 * Start tests from the main-settings page. |
| 14 */ | 14 */ |
| 15 browsePreload: 'chrome://settings-frame/settings', | 15 browsePreload: 'chrome://settings-frame/', |
| 16 | 16 |
| 17 /** | 17 /** |
| 18 * @override | 18 * @override |
| 19 */ | 19 */ |
| 20 preLoad: function() { | 20 preLoad: function() { |
| 21 this.makeAndRegisterMockHandler([ | 21 this.makeAndRegisterMockHandler([ |
| 22 'bluetoothEnableChange', | 22 'bluetoothEnableChange', |
| 23 'updateBluetoothDevice', | 23 'updateBluetoothDevice', |
| 24 'findBluetoothDevices', | 24 'findBluetoothDevices', |
| 25 'stopBluetoothDeviceDiscovery', | 25 'stopBluetoothDeviceDiscovery', |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 assertTrue(!!element); | 365 assertTrue(!!element); |
| 366 var label = element.querySelector('.bluetooth-device-label'); | 366 var label = element.querySelector('.bluetooth-device-label'); |
| 367 assertTrue(!!label); | 367 assertTrue(!!label); |
| 368 assertEquals(maliciousStrings[i], label.textContent); | 368 assertEquals(maliciousStrings[i], label.textContent); |
| 369 assertEquals(pairDeviceDialogSize, nodeCount(pairDeviceDialog)); | 369 assertEquals(pairDeviceDialogSize, nodeCount(pairDeviceDialog)); |
| 370 } | 370 } |
| 371 | 371 |
| 372 }); | 372 }); |
| 373 | 373 |
| 374 GEN('#endif'); | 374 GEN('#endif'); |
| OLD | NEW |