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

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

Issue 1814703004: MD Settings: implement "RESTART" button for hardware acceleration to take effect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests Created 4 years, 9 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 * Test fixture for device-page. 193 * Test fixture for device-page.
194 * @constructor 194 * @constructor
195 * @extends {CrSettingsBrowserTest} 195 * @extends {CrSettingsBrowserTest}
196 */ 196 */
197 function CrSettingsDevicePageTest() {} 197 function CrSettingsDevicePageTest() {}
198 198
199 CrSettingsDevicePageTest.prototype = { 199 CrSettingsDevicePageTest.prototype = {
200 __proto__: CrSettingsBrowserTest.prototype, 200 __proto__: CrSettingsBrowserTest.prototype,
201 201
202 /** @override */ 202 /** @override */
203 browsePreload: 203 browsePreload: 'chrome://md-settings/device_page/device_page.html',
204 'chrome://md-settings/device_page/device_page.html',
205 204
206 /** @override */ 205 /** @override */
207 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ 206 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([
208 '../fake_chrome_event.js', 207 '../fake_chrome_event.js',
209 'fake_settings_private.js', 208 'fake_settings_private.js',
210 'device_page_tests.js', 209 'device_page_tests.js',
211 ]), 210 ]),
212 }; 211 };
213 212
214 TEST_F('CrSettingsDevicePageTest', 'DevicePage', function() { 213 TEST_F('CrSettingsDevicePageTest', 'DevicePage', function() {
215 mocha.run(); 214 mocha.run();
216 }); 215 });
217 GEN('#endif'); 216 GEN('#endif');
217
218 GEN('#if !defined(OS_CHROMEOS)');
219 /**
220 * @constructor
221 * @extends {CrSettingsBrowserTest}
222 */
223 function CrSettingsSystemPageTest() {}
224
225 CrSettingsSystemPageTest.prototype = {
226 __proto__: CrSettingsBrowserTest.prototype,
227
228 /** @override */
229 browsePreload: 'chrome://md-settings/system_page/system_page.html',
230
231 /** @override */
232 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
233 'test_browser_proxy.js',
dpapad 2016/03/21 18:17:38 TestBrowserProxy depends on PromiseResolver, so yo
Dan Beam 2016/03/22 02:16:59 this is probably why it worked: https://code.googl
234 'system_page_tests.js',
235 ]),
236 };
237
238 TEST_F('CrSettingsSystemPageTest', 'Restart', function() {
239 mocha.run();
240 });
241 GEN('#endif');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698