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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 }); | 151 }); |
152 | 152 |
153 GEN('#if defined(GOOGLE_CHROME_BUILD)'); | 153 GEN('#if defined(GOOGLE_CHROME_BUILD)'); |
154 TEST_F('CrSettingsAboutPageTest', 'AboutPage_OfficialBuild', function() { | 154 TEST_F('CrSettingsAboutPageTest', 'AboutPage_OfficialBuild', function() { |
155 settings_about_page.registerOfficialBuildTests(); | 155 settings_about_page.registerOfficialBuildTests(); |
156 mocha.run(); | 156 mocha.run(); |
157 }); | 157 }); |
158 GEN('#endif'); | 158 GEN('#endif'); |
159 | 159 |
160 GEN('#if defined(OS_CHROMEOS)'); | 160 GEN('#if defined(OS_CHROMEOS)'); |
| 161 |
| 162 /** |
| 163 * Test fixture for |
| 164 * chrome/browser/resources/settings/people_page/password_prompt_dialog.html. |
| 165 * This is ChromeOS only. |
| 166 * @constructor |
| 167 * @extends {CrSettingsBrowserTest} |
| 168 */ |
| 169 function CrSettingsPeoplePageQuickUnlockAuthenticateTest() {} |
| 170 |
| 171 CrSettingsPeoplePageQuickUnlockAuthenticateTest.prototype = { |
| 172 __proto__: CrSettingsBrowserTest.prototype, |
| 173 |
| 174 /** @override */ |
| 175 browsePreload: 'chrome://md-settings/people_page/password_prompt_dialog.html', |
| 176 |
| 177 /** @override */ |
| 178 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 179 '../fake_chrome_event.js', |
| 180 'fake_quick_unlock_private.js', |
| 181 'quick_unlock_authenticate_browsertest_chromeos.js' |
| 182 ]), |
| 183 }; |
| 184 |
| 185 TEST_F('CrSettingsPeoplePageQuickUnlockAuthenticateTest', 'Test', function() { |
| 186 settings_people_page_quick_unlock.registerAuthenticateTests(); |
| 187 mocha.run(); |
| 188 }); |
| 189 |
| 190 /** |
| 191 * Test fixture for |
| 192 * chrome/browser/resources/settings/people_page/lock_screen.html |
| 193 * This is ChromeOS only. |
| 194 * @constructor |
| 195 * @extends {CrSettingsBrowserTest} |
| 196 */ |
| 197 function CrSettingsPeoplePageLockScreenTest() {} |
| 198 |
| 199 CrSettingsPeoplePageLockScreenTest.prototype = { |
| 200 __proto__: CrSettingsBrowserTest.prototype, |
| 201 |
| 202 /** @override */ |
| 203 //browsePreload: 'chrome://md-settings/settings_main/settings_main.html', |
| 204 browsePreload: 'chrome://md-settings/people_page/lock_screen.html', |
| 205 |
| 206 /** @override */ |
| 207 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 208 '../fake_chrome_event.js', |
| 209 'fake_quick_unlock_private.js', |
| 210 'fake_settings_private.js', |
| 211 'quick_unlock_authenticate_browsertest_chromeos.js' |
| 212 ]), |
| 213 }; |
| 214 |
| 215 TEST_F('CrSettingsPeoplePageLockScreenTest', 'Test', function() { |
| 216 settings_people_page_quick_unlock.registerLockScreenTests(); |
| 217 mocha.run(); |
| 218 }); |
| 219 |
| 220 /** |
| 221 * Test fixture for |
| 222 * chrome/browser/resources/settings/people_page/setup_pin_dialog.html. |
| 223 * |
| 224 * This is ChromeOS only. |
| 225 * @constructor |
| 226 * @extends {CrSettingsBrowserTest} |
| 227 */ |
| 228 function CrSettingsPeoplePageSetupPinDialogTest() {} |
| 229 |
| 230 CrSettingsPeoplePageSetupPinDialogTest.prototype = { |
| 231 __proto__: CrSettingsBrowserTest.prototype, |
| 232 |
| 233 /** @override */ |
| 234 browsePreload: 'chrome://md-settings/people_page/setup_pin_dialog.html', |
| 235 |
| 236 /** @override */ |
| 237 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 238 '../fake_chrome_event.js', |
| 239 'fake_quick_unlock_private.js', |
| 240 'fake_settings_private.js', |
| 241 'quick_unlock_authenticate_browsertest_chromeos.js' |
| 242 ]), |
| 243 }; |
| 244 |
| 245 TEST_F('CrSettingsPeoplePageSetupPinDialogTest', 'Test', function() { |
| 246 settings_people_page_quick_unlock.registerSetupPinDialogTests(); |
| 247 mocha.run(); |
| 248 }); |
| 249 |
161 /** | 250 /** |
162 * Test fixture for | 251 * Test fixture for |
163 * chrome/browser/resources/settings/people_page/change_picture.html. | 252 * chrome/browser/resources/settings/people_page/change_picture.html. |
164 * This is ChromeOS only. | 253 * This is ChromeOS only. |
165 * @constructor | 254 * @constructor |
166 * @extends {CrSettingsBrowserTest} | 255 * @extends {CrSettingsBrowserTest} |
167 */ | 256 */ |
168 function CrSettingsPeoplePageChangePictureTest() {} | 257 function CrSettingsPeoplePageChangePictureTest() {} |
169 | 258 |
170 CrSettingsPeoplePageChangePictureTest.prototype = { | 259 CrSettingsPeoplePageChangePictureTest.prototype = { |
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 'test_privacy_page_browser_proxy.js', | 945 'test_privacy_page_browser_proxy.js', |
857 'metrics_reporting_tests.js', | 946 'metrics_reporting_tests.js', |
858 ]), | 947 ]), |
859 }; | 948 }; |
860 | 949 |
861 TEST_F('CrSettingsMetricsReportingTest', 'All', function() { | 950 TEST_F('CrSettingsMetricsReportingTest', 'All', function() { |
862 mocha.run(); | 951 mocha.run(); |
863 }); | 952 }); |
864 | 953 |
865 GEN('#endif'); | 954 GEN('#endif'); |
OLD | NEW |