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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 ]), | 127 ]), |
128 }; | 128 }; |
129 | 129 |
130 TEST_F('CrSettingsSearchEnginesTest', 'SearchEngines', function() { | 130 TEST_F('CrSettingsSearchEnginesTest', 'SearchEngines', function() { |
131 settings_search_engines_page.registerDialogTests(); | 131 settings_search_engines_page.registerDialogTests(); |
132 settings_search_engines_page.registerSearchEngineEntryTests(); | 132 settings_search_engines_page.registerSearchEngineEntryTests(); |
133 settings_search_engines_page.registerOmniboxExtensionEntryTests(); | 133 settings_search_engines_page.registerOmniboxExtensionEntryTests(); |
134 settings_search_engines_page.registerPageTests(); | 134 settings_search_engines_page.registerPageTests(); |
135 mocha.run(); | 135 mocha.run(); |
136 }); | 136 }); |
| 137 |
| 138 GEN('#if defined(OS_CHROMEOS)'); |
| 139 /** |
| 140 * Test fixture for device-page. |
| 141 * @constructor |
| 142 * @extends {CrSettingsBrowserTest} |
| 143 */ |
| 144 function CrSettingsDevicePageTest() {} |
| 145 |
| 146 CrSettingsDevicePageTest.prototype = { |
| 147 __proto__: CrSettingsBrowserTest.prototype, |
| 148 |
| 149 /** @override */ |
| 150 browsePreload: |
| 151 'chrome://md-settings/device_page/device_page.html', |
| 152 |
| 153 /** @override */ |
| 154 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ |
| 155 '../fake_chrome_event.js', |
| 156 'fake_settings_private.js', |
| 157 'device_page_tests.js', |
| 158 ]), |
| 159 }; |
| 160 |
| 161 TEST_F('CrSettingsDevicePageTest', 'DevicePage', function() { |
| 162 mocha.run(); |
| 163 }); |
| 164 GEN('#endif'); |
OLD | NEW |