| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 ]), | 117 ]), |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 TEST_F('CrSettingsPeoplePageManageProfileTest', 'ManageProfile', function() { | 120 TEST_F('CrSettingsPeoplePageManageProfileTest', 'ManageProfile', function() { |
| 121 settings_people_page_manage_profile.registerTests(); | 121 settings_people_page_manage_profile.registerTests(); |
| 122 mocha.run(); | 122 mocha.run(); |
| 123 }); | 123 }); |
| 124 GEN('#endif'); | 124 GEN('#endif'); |
| 125 | 125 |
| 126 /** | 126 /** |
| 127 * Test fixture for |
| 128 * chrome/browser/resources/settings/people_page/people_page.html. |
| 129 * @constructor |
| 130 * @extends {CrSettingsBrowserTest} |
| 131 */ |
| 132 function CrSettingsPeoplePageTest() {} |
| 133 |
| 134 CrSettingsPeoplePageTest.prototype = { |
| 135 __proto__: CrSettingsBrowserTest.prototype, |
| 136 |
| 137 /** @override */ |
| 138 browsePreload: 'chrome://md-settings/people_page/people_page.html', |
| 139 |
| 140 /** @override */ |
| 141 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ |
| 142 'test_browser_proxy.js', |
| 143 'people_page_test.js', |
| 144 ]), |
| 145 }; |
| 146 |
| 147 TEST_F('CrSettingsPeoplePageTest', 'PeoplePage', function() { |
| 148 settings_people_page.registerTests(); |
| 149 mocha.run(); |
| 150 }); |
| 151 |
| 152 /** |
| 127 * @constructor | 153 * @constructor |
| 128 * @extends {CrSettingsBrowserTest} | 154 * @extends {CrSettingsBrowserTest} |
| 129 */ | 155 */ |
| 130 function CrSettingsRtlTest() {} | 156 function CrSettingsRtlTest() {} |
| 131 | 157 |
| 132 CrSettingsRtlTest.prototype = { | 158 CrSettingsRtlTest.prototype = { |
| 133 __proto__: CrSettingsBrowserTest.prototype, | 159 __proto__: CrSettingsBrowserTest.prototype, |
| 134 | 160 |
| 135 /** @override */ | 161 /** @override */ |
| 136 browsePreload: 'chrome://md-settings/settings_ui/settings_ui.html', | 162 browsePreload: 'chrome://md-settings/settings_ui/settings_ui.html', |
| 137 | 163 |
| 138 /** @override */ | 164 /** @override */ |
| 139 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 165 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 140 'rtl_tests.js', | 166 'rtl_tests.js', |
| 141 ]), | 167 ]), |
| 142 }; | 168 }; |
| 143 | 169 |
| 144 TEST_F('CrSettingsRtlTest', 'DrawerPanelFlips', function() { | 170 TEST_F('CrSettingsRtlTest', 'DrawerPanelFlips', function() { |
| 145 settingsHidePagesByDefaultForTest = true; | 171 settingsHidePagesByDefaultForTest = true; |
| 146 settings_rtl_tests.registerDrawerPanelTests(); | 172 settings_rtl_tests.registerDrawerPanelTests(); |
| 147 mocha.run(); | 173 mocha.run(); |
| 148 }); | 174 }); |
| 149 | 175 |
| 150 | |
| 151 /** | 176 /** |
| 152 * Test fixture for chrome/browser/resources/settings/reset_page/. | 177 * Test fixture for chrome/browser/resources/settings/reset_page/. |
| 153 * @constructor | 178 * @constructor |
| 154 * @extends {CrSettingsBrowserTest} | 179 * @extends {CrSettingsBrowserTest} |
| 155 */ | 180 */ |
| 156 function CrSettingsResetPageTest() {} | 181 function CrSettingsResetPageTest() {} |
| 157 | 182 |
| 158 CrSettingsResetPageTest.prototype = { | 183 CrSettingsResetPageTest.prototype = { |
| 159 __proto__: CrSettingsBrowserTest.prototype, | 184 __proto__: CrSettingsBrowserTest.prototype, |
| 160 | 185 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 | 429 |
| 405 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 430 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 406 'test_browser_proxy.js', | 431 'test_browser_proxy.js', |
| 407 'startup_urls_page_test.js', | 432 'startup_urls_page_test.js', |
| 408 ]), | 433 ]), |
| 409 }; | 434 }; |
| 410 | 435 |
| 411 TEST_F('CrSettingsStartupUrlsPageTest', 'StartupUrlsPage', function() { | 436 TEST_F('CrSettingsStartupUrlsPageTest', 'StartupUrlsPage', function() { |
| 412 mocha.run(); | 437 mocha.run(); |
| 413 }); | 438 }); |
| OLD | NEW |