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

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: cleanup 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 'reset_page_test.js', 112 'reset_page_test.js',
113 ]), 113 ]),
114 }; 114 };
115 115
116 TEST_F('CrSettingsResetPageTest', 'ResetPage', function() { 116 TEST_F('CrSettingsResetPageTest', 'ResetPage', function() {
117 settings_reset_page.registerTests(); 117 settings_reset_page.registerTests();
118 mocha.run(); 118 mocha.run();
119 }); 119 });
120 120
121 /** 121 /**
122 * Test fixture for chrome/browser/resources/settings/appearance_page/.
123 * @constructor
124 * @extends {CrSettingsBrowserTest}
125 */
126 function CrSettingsAppearancePageTest() {}
127
128 CrSettingsAppearancePageTest.prototype = {
129 __proto__: CrSettingsBrowserTest.prototype,
130
131 /** @override */
132 browsePreload: 'chrome://md-settings/appearance_page/appearance_page.html',
133
134 /** @override */
135 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([
136 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js',
137 'test_browser_proxy.js',
138 'appearance_browsertest.js',
139 ]),
140 };
141
142 TEST_F('CrSettingsAppearancePageTest', 'AppearancePage', function() {
143 settings_appearance.registerTests();
144 mocha.run();
145 });
146
147 /**
122 * Test fixture for chrome/browser/resources/settings/search_page/. 148 * Test fixture for chrome/browser/resources/settings/search_page/.
123 * @constructor 149 * @constructor
124 * @extends {CrSettingsBrowserTest} 150 * @extends {CrSettingsBrowserTest}
125 */ 151 */
126 function CrSettingsSearchPageTest() {} 152 function CrSettingsSearchPageTest() {}
127 153
128 CrSettingsSearchPageTest.prototype = { 154 CrSettingsSearchPageTest.prototype = {
129 __proto__: CrSettingsBrowserTest.prototype, 155 __proto__: CrSettingsBrowserTest.prototype,
130 156
131 /** @override */ 157 /** @override */
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ 354 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
329 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', 355 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js',
330 'test_browser_proxy.js', 356 'test_browser_proxy.js',
331 'startup_urls_page_test.js', 357 'startup_urls_page_test.js',
332 ]), 358 ]),
333 }; 359 };
334 360
335 TEST_F('CrSettingsStartupUrlsPageTest', 'Validity', function() { 361 TEST_F('CrSettingsStartupUrlsPageTest', 'Validity', function() {
336 mocha.run(); 362 mocha.run();
337 }); 363 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698