| 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 |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 expectFalse(!!element.getAttribute('connected')); | 305 expectFalse(!!element.getAttribute('connected')); |
| 306 button = element.querySelector('.row-delete-button'); | 306 button = element.querySelector('.row-delete-button'); |
| 307 expectTrue(!!button); | 307 expectTrue(!!button); |
| 308 testDone(); | 308 testDone(); |
| 309 }.bind(this)); | 309 }.bind(this)); |
| 310 }.bind(this)); | 310 }.bind(this)); |
| 311 }.bind(this)); | 311 }.bind(this)); |
| 312 }.bind(this)); | 312 }.bind(this)); |
| 313 }); | 313 }); |
| 314 | 314 |
| 315 TEST_F('BluetoothWebUITestAsync', 'testForget', function() { | 315 // TODO(crbug.com/605090): Disabled because of flakiness. |
| 316 TEST_F('BluetoothWebUITestAsync', 'DISABLED_testForget', function() { |
| 316 assertEquals(this.browsePreload, document.location.href); | 317 assertEquals(this.browsePreload, document.location.href); |
| 317 | 318 |
| 318 // Enable bluetooth. | 319 // Enable bluetooth. |
| 319 $('enable-bluetooth').click(); | 320 $('enable-bluetooth').click(); |
| 320 | 321 |
| 321 // Wait for the UI to process any pending messages. | 322 // Wait for the UI to process any pending messages. |
| 322 window.setTimeout(function() { | 323 window.setTimeout(function() { |
| 323 // Wait for fake bluetooth impl to send any updates. | 324 // Wait for fake bluetooth impl to send any updates. |
| 324 chrome.bluetooth.getAdapterState(function(state) { | 325 chrome.bluetooth.getAdapterState(function(state) { |
| 325 var pairedDeviceList = $('bluetooth-paired-devices-list'); | 326 var pairedDeviceList = $('bluetooth-paired-devices-list'); |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 assertEquals(pairDeviceDialogSize, nodeCount(pairDeviceDialog)); | 430 assertEquals(pairDeviceDialogSize, nodeCount(pairDeviceDialog)); |
| 430 } | 431 } |
| 431 | 432 |
| 432 testDone(); | 433 testDone(); |
| 433 }.bind(this)); | 434 }.bind(this)); |
| 434 }.bind(this)); | 435 }.bind(this)); |
| 435 }.bind(this)); | 436 }.bind(this)); |
| 436 }); | 437 }); |
| 437 | 438 |
| 438 GEN('#endif'); | 439 GEN('#endif'); |
| OLD | NEW |