| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 /** | 5 /** |
| 6 * @fileoverview Tests for chrome://bluetooth-internals | 6 * @fileoverview Tests for chrome://bluetooth-internals |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 /** @const {string} Path to source root. */ | 9 /** @const {string} Path to source root. */ |
| 10 var ROOT_PATH = '../../../../'; | 10 var ROOT_PATH = '../../../../'; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 */ | 218 */ |
| 219 fakeDeviceInfo3: function() { | 219 fakeDeviceInfo3: function() { |
| 220 return { | 220 return { |
| 221 address: "CC:CC:84:96:92:84", | 221 address: "CC:CC:84:96:92:84", |
| 222 name: "CCC", | 222 name: "CCC", |
| 223 name_for_display: "CCC", | 223 name_for_display: "CCC", |
| 224 }; | 224 }; |
| 225 }, | 225 }, |
| 226 }; | 226 }; |
| 227 | 227 |
| 228 TEST_F('BluetoothInternalsTest', 'Startup_BluetoothInternals', function() { | 228 // Fails on Win/Mac. https://crbug.com/676227 |
| 229 GEN('#if defined(OS_MACOSX) || defined(OS_WIN)'); |
| 230 GEN('#define MAYBE_Startup_BluetoothInternals \\'); |
| 231 GEN(' DISABLED_Startup_BluetoothInternals'); |
| 232 GEN('#else'); |
| 233 GEN('#define MAYBE_Startup_BluetoothInternals Startup_BluetoothInternals'); |
| 234 GEN('#endif'); |
| 235 |
| 236 TEST_F('BluetoothInternalsTest', |
| 237 'MAYBE_Startup_BluetoothInternals', function() { |
| 229 var adapterFactory = null; | 238 var adapterFactory = null; |
| 230 var deviceTable = null; | 239 var deviceTable = null; |
| 231 var sidebarNode = null; | 240 var sidebarNode = null; |
| 232 | 241 |
| 233 var fakeDeviceInfo1 = this.fakeDeviceInfo1; | 242 var fakeDeviceInfo1 = this.fakeDeviceInfo1; |
| 234 var fakeDeviceInfo2 = this.fakeDeviceInfo2; | 243 var fakeDeviceInfo2 = this.fakeDeviceInfo2; |
| 235 var fakeDeviceInfo3 = this.fakeDeviceInfo3; | 244 var fakeDeviceInfo3 = this.fakeDeviceInfo3; |
| 236 | 245 |
| 237 // Before tests are run, make sure setup completes. | 246 // Before tests are run, make sure setup completes. |
| 238 var setupPromise = this.setupResolver.promise.then(function() { | 247 var setupPromise = this.setupResolver.promise.then(function() { |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 snackbar3.addEventListener('dismissed', next); | 558 snackbar3.addEventListener('dismissed', next); |
| 550 | 559 |
| 551 snackbar.Snackbar.dismiss(true); | 560 snackbar.Snackbar.dismiss(true); |
| 552 }); | 561 }); |
| 553 }); | 562 }); |
| 554 | 563 |
| 555 | 564 |
| 556 // Run all registered tests. | 565 // Run all registered tests. |
| 557 mocha.run(); | 566 mocha.run(); |
| 558 }); | 567 }); |
| OLD | NEW |