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

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

Issue 1952863002: [MD settings] unit test for settings-menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review changes Created 4 years, 7 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
« no previous file with comments | « no previous file | chrome/test/data/webui/settings/settings_menu_test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 'fake_system_display.js', 385 'fake_system_display.js',
386 'device_page_tests.js', 386 'device_page_tests.js',
387 ]), 387 ]),
388 }; 388 };
389 389
390 TEST_F('CrSettingsDevicePageTest', 'DevicePage', function() { 390 TEST_F('CrSettingsDevicePageTest', 'DevicePage', function() {
391 mocha.run(); 391 mocha.run();
392 }); 392 });
393 GEN('#endif'); 393 GEN('#endif');
394 394
395 /**
396 * Test fixture for chrome/browser/resources/settings/settings_menu/.
397 * @constructor
398 * @extends {CrSettingsBrowserTest}
399 */
400 function CrSettingsMenuTest() {}
401
402 CrSettingsMenuTest.prototype = {
403 __proto__: CrSettingsBrowserTest.prototype,
404
405 /** @override */
406 browsePreload: 'chrome://md-settings/settings_menu/settings_menu.html',
407
408 /** @override */
409 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([
410 'settings_menu_test.js',
411 ]),
412 };
413
414 TEST_F('CrSettingsMenuTest', 'SettingsMenu', function() {
415 settings_menu.registerTests();
416 mocha.run();
417 });
418
395 GEN('#if !defined(OS_CHROMEOS)'); 419 GEN('#if !defined(OS_CHROMEOS)');
396 /** 420 /**
397 * @constructor 421 * @constructor
398 * @extends {CrSettingsBrowserTest} 422 * @extends {CrSettingsBrowserTest}
399 */ 423 */
400 function CrSettingsSystemPageTest() {} 424 function CrSettingsSystemPageTest() {}
401 425
402 CrSettingsSystemPageTest.prototype = { 426 CrSettingsSystemPageTest.prototype = {
403 __proto__: CrSettingsBrowserTest.prototype, 427 __proto__: CrSettingsBrowserTest.prototype,
404 428
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ 478 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
455 'fake_language_settings_private.js', 479 'fake_language_settings_private.js',
456 'fake_settings_private.js', 480 'fake_settings_private.js',
457 'languages_page_tests.js', 481 'languages_page_tests.js',
458 ]), 482 ]),
459 }; 483 };
460 484
461 TEST_F('CrSettingsLanguagesPageTest', 'LanguagesPage', function() { 485 TEST_F('CrSettingsLanguagesPageTest', 'LanguagesPage', function() {
462 mocha.run(); 486 mocha.run();
463 }); 487 });
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/webui/settings/settings_menu_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698