Chromium Code Reviews| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 150 }); | 150 }); |
| 151 | 151 |
| 152 GEN('#if defined(GOOGLE_CHROME_BUILD)'); | 152 GEN('#if defined(GOOGLE_CHROME_BUILD)'); |
| 153 TEST_F('CrSettingsAboutPageTest', 'AboutPage_OfficialBuild', function() { | 153 TEST_F('CrSettingsAboutPageTest', 'AboutPage_OfficialBuild', function() { |
| 154 settings_about_page.registerOfficialBuildTests(); | 154 settings_about_page.registerOfficialBuildTests(); |
| 155 mocha.run(); | 155 mocha.run(); |
| 156 }); | 156 }); |
| 157 GEN('#endif'); | 157 GEN('#endif'); |
| 158 | 158 |
| 159 GEN('#if defined(OS_CHROMEOS)'); | 159 GEN('#if defined(OS_CHROMEOS)'); |
| 160 | |
| 161 /** | |
| 162 * Test fixture for | |
| 163 * chrome/browser/resources/settings/people_page/quick_unlock_authenticate.html. | |
| 164 * This is ChromeOS only. | |
| 165 * @constructor | |
| 166 * @extends {CrSettingsBrowserTest} | |
| 167 */ | |
| 168 function CrSettingsPeoplePageQuickUnlockAuthenticateTest() {} | |
| 169 | |
| 170 CrSettingsPeoplePageQuickUnlockAuthenticateTest.prototype = { | |
| 171 __proto__: CrSettingsBrowserTest.prototype, | |
| 172 | |
| 173 /** @override */ | |
| 174 browsePreload: 'chrome://md-settings/people_page/quick_unlock_authenticate.htm l', | |
| 175 | |
| 176 /** @override */ | |
| 177 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | |
| 178 '../fake_chrome_event.js', | |
| 179 'fake_quick_unlock_private.js', | |
| 180 'quick_unlock_authenticate_browsertest_chromeos.js' | |
| 181 ]), | |
| 182 }; | |
| 183 | |
| 184 TEST_F('CrSettingsPeoplePageQuickUnlockAuthenticateTest', 'Test', function() { | |
| 185 settings_people_page_quick_unlock.registerAuthenticateTests(); | |
| 186 mocha.run(); | |
| 187 }); | |
| 188 | |
| 189 /** | |
| 190 * Test fixture for | |
| 191 * chrome/browser/resources/settings/people_page/quick_unlock_choose_method.html | |
| 192 * This is ChromeOS only. | |
| 193 * @constructor | |
| 194 * @extends {CrSettingsBrowserTest} | |
| 195 */ | |
| 196 function CrSettingsPeoplePageQuickUnlockChooseMethodTest() {} | |
| 197 | |
| 198 CrSettingsPeoplePageQuickUnlockChooseMethodTest.prototype = { | |
| 199 __proto__: CrSettingsBrowserTest.prototype, | |
| 200 | |
| 201 /** @override */ | |
| 202 browsePreload: 'chrome://md-settings/settings_main/settings_main.html', | |
|
tommycli
2016/07/18 20:47:24
This can't be done via preloading the quick_unlock
jdufault
2016/07/19 00:11:08
It can, but I'd have to put a bunch of extra unnee
| |
| 203 | |
| 204 /** @override */ | |
| 205 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | |
| 206 '../fake_chrome_event.js', | |
| 207 'fake_quick_unlock_private.js', | |
| 208 'test_browser_proxy.js', | |
| 209 'fake_settings_private.js', | |
| 210 'quick_unlock_authenticate_browsertest_chromeos.js' | |
| 211 ]), | |
| 212 }; | |
| 213 | |
| 214 TEST_F('CrSettingsPeoplePageQuickUnlockChooseMethodTest', 'Test', function() { | |
| 215 settings_people_page_quick_unlock.registerChooseMethodTests(); | |
| 216 mocha.run(); | |
| 217 }); | |
| 218 | |
| 219 /** | |
| 220 * Test fixture for | |
| 221 * chrome/browser/resources/settings/people_page/quick_unlock_setup_pin.html. | |
| 222 * This is ChromeOS only. | |
| 223 * @constructor | |
| 224 * @extends {CrSettingsBrowserTest} | |
| 225 */ | |
| 226 function CrSettingsPeoplePageQuickUnlockSetupPinTest() {} | |
| 227 | |
| 228 CrSettingsPeoplePageQuickUnlockSetupPinTest.prototype = { | |
| 229 __proto__: CrSettingsBrowserTest.prototype, | |
| 230 | |
| 231 /** @override */ | |
| 232 browsePreload: 'chrome://md-settings/people_page/people_page.html', | |
|
tommycli
2016/07/18 20:47:24
Same here. Can this be done by preloading setup_pi
jdufault
2016/07/19 00:11:08
Done.
| |
| 233 | |
| 234 /** @override */ | |
| 235 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | |
| 236 '../fake_chrome_event.js', | |
| 237 'fake_quick_unlock_private.js', | |
| 238 'test_browser_proxy.js', | |
| 239 'fake_settings_private.js', | |
| 240 'quick_unlock_authenticate_browsertest_chromeos.js' | |
| 241 ]), | |
| 242 }; | |
| 243 | |
| 244 TEST_F('CrSettingsPeoplePageQuickUnlockSetupPinTest', 'Test', function() { | |
| 245 settings_people_page_quick_unlock.registerSetupPinTests(); | |
| 246 mocha.run(); | |
| 247 }); | |
| 248 | |
| 160 /** | 249 /** |
| 161 * Test fixture for | 250 * Test fixture for |
| 162 * chrome/browser/resources/settings/people_page/change_picture.html. | 251 * chrome/browser/resources/settings/people_page/change_picture.html. |
| 163 * This is ChromeOS only. | 252 * This is ChromeOS only. |
| 164 * @constructor | 253 * @constructor |
| 165 * @extends {CrSettingsBrowserTest} | 254 * @extends {CrSettingsBrowserTest} |
| 166 */ | 255 */ |
| 167 function CrSettingsPeoplePageChangePictureTest() {} | 256 function CrSettingsPeoplePageChangePictureTest() {} |
| 168 | 257 |
| 169 CrSettingsPeoplePageChangePictureTest.prototype = { | 258 CrSettingsPeoplePageChangePictureTest.prototype = { |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 669 browsePreload: 'chrome://md-settings/settings_page/settings_router.html', | 758 browsePreload: 'chrome://md-settings/settings_page/settings_router.html', |
| 670 | 759 |
| 671 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 760 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 672 'router_tests.js', | 761 'router_tests.js', |
| 673 ]), | 762 ]), |
| 674 }; | 763 }; |
| 675 | 764 |
| 676 TEST_F('CrSettingsRouterElementTest', 'All', function() { | 765 TEST_F('CrSettingsRouterElementTest', 'All', function() { |
| 677 mocha.run(); | 766 mocha.run(); |
| 678 }); | 767 }); |
| OLD | NEW |