Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Side by Side Diff: chrome/test/data/webui/settings/cr_settings_browsertest.js

Issue 1864713003: [MD settings] appearance browser tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test proxy Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 'reset_page_test.js', 170 'reset_page_test.js',
171 ]), 171 ]),
172 }; 172 };
173 173
174 TEST_F('CrSettingsResetPageTest', 'ResetPage', function() { 174 TEST_F('CrSettingsResetPageTest', 'ResetPage', function() {
175 settings_reset_page.registerTests(); 175 settings_reset_page.registerTests();
176 mocha.run(); 176 mocha.run();
177 }); 177 });
178 178
179 /** 179 /**
180 * Test fixture for chrome/browser/resources/settings/appearance_page/.
181 * @constructor
182 * @extends {CrSettingsBrowserTest}
183 */
184 function CrSettingsAppearancePageTest() {}
185
186 CrSettingsAppearancePageTest.prototype = {
187 __proto__: CrSettingsBrowserTest.prototype,
188
189 /** @override */
190 browsePreload: 'chrome://md-settings/appearance_page/appearance_page.html',
191
192 /** @override */
193 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([
194 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js',
dpapad 2016/04/13 19:06:24 Not needed anymore, since https://codereview.chrom
195 'test_browser_proxy.js',
196 'appearance_page_test.js',
197 ]),
198 };
199
200 TEST_F('CrSettingsAppearancePageTest', 'AppearancePage', function() {
201 settings_appearance.registerTests();
202 mocha.run();
203 });
204
205 /**
180 * Test fixture for chrome/browser/resources/settings/search_page/. 206 * Test fixture for chrome/browser/resources/settings/search_page/.
181 * @constructor 207 * @constructor
182 * @extends {CrSettingsBrowserTest} 208 * @extends {CrSettingsBrowserTest}
183 */ 209 */
184 function CrSettingsSearchPageTest() {} 210 function CrSettingsSearchPageTest() {}
185 211
186 CrSettingsSearchPageTest.prototype = { 212 CrSettingsSearchPageTest.prototype = {
187 __proto__: CrSettingsBrowserTest.prototype, 213 __proto__: CrSettingsBrowserTest.prototype,
188 214
189 /** @override */ 215 /** @override */
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ 413 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
388 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', 414 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js',
389 'test_browser_proxy.js', 415 'test_browser_proxy.js',
390 'startup_urls_page_test.js', 416 'startup_urls_page_test.js',
391 ]), 417 ]),
392 }; 418 };
393 419
394 TEST_F('CrSettingsStartupUrlsPageTest', 'StartupUrlsPage', function() { 420 TEST_F('CrSettingsStartupUrlsPageTest', 'StartupUrlsPage', function() {
395 mocha.run(); 421 mocha.run();
396 }); 422 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698