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

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

Issue 1532503003: Add FakeChromeEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix extraLibraries Created 5 years 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 | « chrome/test/data/webui/settings/fake_settings_private.js ('k') | 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 Prototype for Settings page tests. */ 5 /** @fileoverview Prototype for Settings page tests. */
6 6
7 /** @const {string} Path to root from chrome/test/data/webui/settings/. */ 7 /** @const {string} Path to root from chrome/test/data/webui/settings/. */
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 * @constructor 15 * @constructor
16 * @extends {PolymerTest} 16 * @extends {PolymerTest}
17 */ 17 */
18 function SettingsPageBrowserTest() {} 18 function SettingsPageBrowserTest() {}
19 19
20 SettingsPageBrowserTest.prototype = { 20 SettingsPageBrowserTest.prototype = {
21 __proto__: PolymerTest.prototype, 21 __proto__: PolymerTest.prototype,
22 22
23 /** @override */ 23 /** @override */
24 browsePreload: 'chrome://md-settings/', 24 browsePreload: 'chrome://md-settings/',
25 25
26 /** @override */ 26 /** @override */
27 extraLibraries: PolymerTest.getLibraries(ROOT_PATH), 27 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([
28 '../fake_chrome_event.js',
29 'fake_settings_private.js',
30 ]),
28 31
29 /** @override */ 32 /** @override */
30 runAccessibilityChecks: false, 33 runAccessibilityChecks: false,
31 34
32 /** @override */ 35 /** @override */
33 setUp: function() { 36 setUp: function() {
34 PolymerTest.prototype.setUp.call(this); 37 PolymerTest.prototype.setUp.call(this);
35 suiteSetup(function() { 38 suiteSetup(function() {
36 return CrSettingsPrefs.initialized; 39 return CrSettingsPrefs.initialized;
37 }); 40 });
(...skipping 28 matching lines...) Expand all
66 var sections = page.shadowRoot.querySelectorAll('settings-section'); 69 var sections = page.shadowRoot.querySelectorAll('settings-section');
67 assertTrue(!!sections); 70 assertTrue(!!sections);
68 for (var i = 0; i < sections.length; ++i) { 71 for (var i = 0; i < sections.length; ++i) {
69 var s = sections[i]; 72 var s = sections[i];
70 if (s.section == section) 73 if (s.section == section)
71 return s; 74 return s;
72 } 75 }
73 return undefined; 76 return undefined;
74 }, 77 },
75 }; 78 };
OLDNEW
« no previous file with comments | « chrome/test/data/webui/settings/fake_settings_private.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698