| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 /** @fileoverview Runs the Polymer Settings tests. */ | 5 /** @fileoverview Runs the Polymer Settings tests. */ |
| 6 | 6 |
| 7 /** @const {string} Path to source root. */ | 7 /** @const {string} Path to source root. */ |
| 8 var ROOT_PATH = '../../../../../'; | 8 var ROOT_PATH = '../../../../../'; |
| 9 | 9 |
| 10 // Polymer BrowserTest fixture. | 10 // Polymer BrowserTest fixture. |
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 mocha.grep(assert(device_page_tests.TestNames.Keyboard)).run(); | 716 mocha.grep(assert(device_page_tests.TestNames.Keyboard)).run(); |
| 717 }); | 717 }); |
| 718 | 718 |
| 719 TEST_F('CrSettingsDevicePageTest', 'PointersTest', function() { | 719 TEST_F('CrSettingsDevicePageTest', 'PointersTest', function() { |
| 720 mocha.grep(assert(device_page_tests.TestNames.Pointers)).run(); | 720 mocha.grep(assert(device_page_tests.TestNames.Pointers)).run(); |
| 721 }); | 721 }); |
| 722 | 722 |
| 723 TEST_F('CrSettingsDevicePageTest', 'PowerTest', function() { | 723 TEST_F('CrSettingsDevicePageTest', 'PowerTest', function() { |
| 724 mocha.grep(assert(device_page_tests.TestNames.Power)).run(); | 724 mocha.grep(assert(device_page_tests.TestNames.Power)).run(); |
| 725 }); | 725 }); |
| 726 |
| 727 /** |
| 728 * Test fixture for device-page. |
| 729 * @constructor |
| 730 * @extends {CrSettingsBrowserTest} |
| 731 */ |
| 732 function CrSettingsBluetoothPageTest() {} |
| 733 |
| 734 CrSettingsBluetoothPageTest.prototype = { |
| 735 __proto__: CrSettingsBrowserTest.prototype, |
| 736 |
| 737 /** @override */ |
| 738 browsePreload: 'chrome://md-settings/bluetooth_page/bluetooth_page.html', |
| 739 |
| 740 /** @override */ |
| 741 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 742 ROOT_PATH + 'ui/webui/resources/js/assert.js', |
| 743 ROOT_PATH + 'ui/webui/resources/js/load_time_data.js', |
| 744 '../fake_chrome_event.js', |
| 745 'fake_bluetooth.js', |
| 746 'fake_bluetooth_private.js', |
| 747 'bluetooth_page_tests.js', |
| 748 ]), |
| 749 }; |
| 750 |
| 751 TEST_F('CrSettingsBluetoothPageTest', 'BluetoothPageTest', function() { |
| 752 mocha.run(); |
| 753 }); |
| 754 |
| 726 GEN('#endif'); | 755 GEN('#endif'); |
| 727 | 756 |
| 728 /** | 757 /** |
| 729 * Test fixture for chrome/browser/resources/settings/settings_menu/. | 758 * Test fixture for chrome/browser/resources/settings/settings_menu/. |
| 730 * @constructor | 759 * @constructor |
| 731 * @extends {CrSettingsBrowserTest} | 760 * @extends {CrSettingsBrowserTest} |
| 732 */ | 761 */ |
| 733 function CrSettingsMenuTest() {} | 762 function CrSettingsMenuTest() {} |
| 734 | 763 |
| 735 CrSettingsMenuTest.prototype = { | 764 CrSettingsMenuTest.prototype = { |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1169 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1198 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 1170 'test_browser_proxy.js', | 1199 'test_browser_proxy.js', |
| 1171 'test_extension_control_browser_proxy.js', | 1200 'test_extension_control_browser_proxy.js', |
| 1172 'extension_controlled_indicator_tests.js', | 1201 'extension_controlled_indicator_tests.js', |
| 1173 ]), | 1202 ]), |
| 1174 }; | 1203 }; |
| 1175 | 1204 |
| 1176 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { | 1205 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { |
| 1177 mocha.run(); | 1206 mocha.run(); |
| 1178 }); | 1207 }); |
| OLD | NEW |