| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 chrome.bluetooth.getAdapterState(function(state) { | 225 chrome.bluetooth.getAdapterState(function(state) { |
| 226 expectTrue($('bluetooth-pairing-pincode-entry').hidden); | 226 expectTrue($('bluetooth-pairing-pincode-entry').hidden); |
| 227 testDone(); | 227 testDone(); |
| 228 }.bind(this)); | 228 }.bind(this)); |
| 229 }.bind(this)); | 229 }.bind(this)); |
| 230 }.bind(this)); | 230 }.bind(this)); |
| 231 }.bind(this)); | 231 }.bind(this)); |
| 232 }.bind(this)); | 232 }.bind(this)); |
| 233 }); | 233 }); |
| 234 | 234 |
| 235 TEST_F('BluetoothWebUITestAsync', 'testConnect', function() { | 235 // TODO(crbug.com/608126) Test is flaky. |
| 236 TEST_F('BluetoothWebUITestAsync', 'DISABLED_testConnect', function() { |
| 236 assertEquals(this.browsePreload, document.location.href); | 237 assertEquals(this.browsePreload, document.location.href); |
| 237 | 238 |
| 238 // Enable bluetooth. | 239 // Enable bluetooth. |
| 239 $('enable-bluetooth').click(); | 240 $('enable-bluetooth').click(); |
| 240 | 241 |
| 241 // Wait for the UI to process any pending messages. | 242 // Wait for the UI to process any pending messages. |
| 242 window.setTimeout(function() { | 243 window.setTimeout(function() { |
| 243 // Wait for fake bluetooth impl to send any updates. | 244 // Wait for fake bluetooth impl to send any updates. |
| 244 chrome.bluetooth.getAdapterState(function(state) { | 245 chrome.bluetooth.getAdapterState(function(state) { |
| 245 var pairedDeviceList = $('bluetooth-paired-devices-list'); | 246 var pairedDeviceList = $('bluetooth-paired-devices-list'); |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 assertEquals(pairDeviceDialogSize, nodeCount(pairDeviceDialog)); | 431 assertEquals(pairDeviceDialogSize, nodeCount(pairDeviceDialog)); |
| 431 } | 432 } |
| 432 | 433 |
| 433 testDone(); | 434 testDone(); |
| 434 }.bind(this)); | 435 }.bind(this)); |
| 435 }.bind(this)); | 436 }.bind(this)); |
| 436 }.bind(this)); | 437 }.bind(this)); |
| 437 }); | 438 }); |
| 438 | 439 |
| 439 GEN('#endif'); | 440 GEN('#endif'); |
| OLD | NEW |