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

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

Issue 2049943003: MD Settings: split browser tests into smaller chunks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: asdf Created 4 years, 6 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 | no next file » | 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // TODO(michaelpg): Re-enable after bringing in fix for 47 // TODO(michaelpg): Re-enable after bringing in fix for
48 // https://github.com/PolymerElements/paper-slider/issues/131. 48 // https://github.com/PolymerElements/paper-slider/issues/131.
49 this.accessibilityAuditConfig.ignoreSelectors( 49 this.accessibilityAuditConfig.ignoreSelectors(
50 'badAriaAttributeValue', 'paper-slider'); 50 'badAriaAttributeValue', 'paper-slider');
51 }, 51 },
52 }; 52 };
53 53
54 // Have to include command_line.h manually due to GEN calls below. 54 // Have to include command_line.h manually due to GEN calls below.
55 GEN('#include "base/command_line.h"'); 55 GEN('#include "base/command_line.h"');
56 56
57 // Times out on memory bots. http://crbug.com/534718 57 TEST_F('CrSettingsBrowserTest', 'Checkbox', function() {
58 GEN('#if defined(MEMORY_SANITIZER)');
59 GEN('#define MAYBE_CrSettingsTest DISABLED_CrSettingsTest');
60 GEN('#else');
61 GEN('#define MAYBE_CrSettingsTest CrSettingsTest');
62 GEN('#endif');
63
64 // TODO(dbeam): these should be split into multiple TEST_F()s.
65 TEST_F('CrSettingsBrowserTest', 'MAYBE_CrSettingsTest', function() {
66 settings_checkbox.registerTests(); 58 settings_checkbox.registerTests();
67 settings_dropdown_menu.registerTests();
68 settings_prefUtil.registerTests();
69 settings_prefs.registerTests();
70
71 // Run all registered tests.
72 mocha.run(); 59 mocha.run();
73 }); 60 });
74 61
62 TEST_F('CrSettingsBrowserTest', 'DropdownMenu', function() {
63 settings_dropdown_menu.registerTests();
64 mocha.run();
65 });
66
67 TEST_F('CrSettingsBrowserTest', 'PrefUtil', function() {
68 settings_prefUtil.registerTests();
69 mocha.run();
70 });
71
72 TEST_F('CrSettingsBrowserTest', 'Prefs', function() {
73 settings_prefs.registerTests();
74 mocha.run();
75 });
76
75 /** 77 /**
76 * @constructor 78 * @constructor
77 * @extends {CrSettingsBrowserTest} 79 * @extends {CrSettingsBrowserTest}
78 */ 80 */
79 function CrSettingsAboutPageTest() {} 81 function CrSettingsAboutPageTest() {}
80 82
81 CrSettingsAboutPageTest.prototype = { 83 CrSettingsAboutPageTest.prototype = {
82 __proto__: CrSettingsBrowserTest.prototype, 84 __proto__: CrSettingsBrowserTest.prototype,
83 85
84 /** @override */ 86 /** @override */
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 570
569 /** @override */ 571 /** @override */
570 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ 572 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([
571 'radio_group_tests.js', 573 'radio_group_tests.js',
572 ]), 574 ]),
573 }; 575 };
574 576
575 TEST_F('CrSettingsRadioGroupTest', 'All', function() { 577 TEST_F('CrSettingsRadioGroupTest', 'All', function() {
576 mocha.run(); 578 mocha.run();
577 }); 579 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698