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

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

Issue 2754563002: MD Settings: Lazy load the contents of the "advanced" settings. (Closed)
Patch Set: Fix direct navigation to lazy loaded sections and overscrolling. Created 3 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.
11 GEN_INCLUDE( 11 GEN_INCLUDE(
12 [ROOT_PATH + 'chrome/test/data/webui/polymer_browser_test_base.js']); 12 [ROOT_PATH + 'chrome/test/data/webui/polymer_browser_test_base.js']);
13 13
14 /** 14 /**
15 * Test fixture for Polymer Settings elements. 15 * Test fixture for Polymer Settings elements.
16 * @constructor 16 * @constructor
17 * @extends {PolymerTest} 17 * @extends {PolymerTest}
18 */ 18 */
19 function CrSettingsBrowserTest() {} 19 function CrSettingsBrowserTest() {}
20 20
21 CrSettingsBrowserTest.prototype = { 21 CrSettingsBrowserTest.prototype = {
22 __proto__: PolymerTest.prototype, 22 __proto__: PolymerTest.prototype,
23 23
24 /** @override */ 24 /** @override */
25 get browsePreload() { 25 get browsePreload() {
26 throw 'this is abstract and should be overriden by subclasses'; 26 throw 'this is abstract and should be overriden by subclasses';
27 }, 27 },
28 28
29 /** @override */ 29 /** @override */
30 extraLibraries: PolymerTest.getLibraries(ROOT_PATH), 30 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([
31 'ensure_lazy_loaded.js',
32 ]),
31 33
32 /** @override */ 34 /** @override */
33 setUp: function() { 35 setUp: function() {
34 PolymerTest.prototype.setUp.call(this); 36 PolymerTest.prototype.setUp.call(this);
35 // We aren't loading the main document. 37 // We aren't loading the main document.
36 this.accessibilityAuditConfig.ignoreSelectors('humanLangMissing', 'html'); 38 this.accessibilityAuditConfig.ignoreSelectors('humanLangMissing', 'html');
37 39
38 // TODO(michaelpg): Re-enable after bringing in fix for 40 // TODO(michaelpg): Re-enable after bringing in fix for
39 // https://github.com/PolymerElements/paper-slider/issues/131. 41 // https://github.com/PolymerElements/paper-slider/issues/131.
40 this.accessibilityAuditConfig.ignoreSelectors( 42 this.accessibilityAuditConfig.ignoreSelectors(
41 'badAriaAttributeValue', 'paper-slider'); 43 'badAriaAttributeValue', 'paper-slider');
44
45
Dan Beam 2017/03/17 00:30:05 too many \n
dpapad 2017/03/17 20:53:55 Done.
46 settings.ensureLazyLoaded();
42 }, 47 },
43 }; 48 };
44 49
45 // Have to include command_line.h manually due to GEN calls below. 50 // Have to include command_line.h manually due to GEN calls below.
46 GEN('#include "base/command_line.h"'); 51 GEN('#include "base/command_line.h"');
47 52
48 function CrSettingsCheckboxTest() {} 53 function CrSettingsCheckboxTest() {}
49 54
50 CrSettingsCheckboxTest.prototype = { 55 CrSettingsCheckboxTest.prototype = {
51 __proto__: CrSettingsBrowserTest.prototype, 56 __proto__: CrSettingsBrowserTest.prototype,
(...skipping 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 1414
1410 /** @override */ 1415 /** @override */
1411 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ 1416 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
1412 'focusable_iron_list_item_behavior_test.js', 1417 'focusable_iron_list_item_behavior_test.js',
1413 ]), 1418 ]),
1414 }; 1419 };
1415 1420
1416 TEST_F('CrSettingsFocusableIronListItemBehavior', 'FocusTest', function() { 1421 TEST_F('CrSettingsFocusableIronListItemBehavior', 'FocusTest', function() {
1417 mocha.run(); 1422 mocha.run();
1418 }); 1423 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698