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

Side by Side Diff: chrome/test/data/webui/settings/appearance_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
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 Polymer Appearance Settings elements. */ 5 /** @fileoverview Runs Polymer Appearance Settings elements. */
6 6
7 GEN_INCLUDE(['settings_page_browsertest.js']); 7 GEN_INCLUDE(['settings_page_browsertest.js']);
8 8
9 /** 9 /**
10 * Test Polymer Appearance Settings elements. 10 * Test Polymer Appearance Settings elements.
11 * @constructor 11 * @constructor
12 * @extends {SettingsPageBrowserTest} 12 * @extends {SettingsPageBrowserTest}
13 */ 13 */
14 function AppearanceSettingsBrowserTest() {} 14 function AppearanceSettingsBrowserTest() {}
15 15
16 AppearanceSettingsBrowserTest.prototype = { 16 AppearanceSettingsBrowserTest.prototype = {
17 __proto__: SettingsPageBrowserTest.prototype, 17 __proto__: SettingsPageBrowserTest.prototype,
18 18
19 /** @override */
20 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([
21 'fake_settings_private.js',
22 ]),
23
24 /** @return {string} */ 19 /** @return {string} */
25 appearancePage: function(selector) { 20 appearancePage: function(selector) {
26 var section = this.getSection(this.getPage('basic'), 'appearance'); 21 var section = this.getSection(this.getPage('basic'), 'appearance');
27 assertTrue(!!section); 22 assertTrue(!!section);
28 var appearance = section.querySelector('settings-appearance-page'); 23 var appearance = section.querySelector('settings-appearance-page');
29 assertTrue(!!appearance); 24 assertTrue(!!appearance);
30 var result = appearance.$$(selector); 25 var result = appearance.$$(selector);
31 assertTrue(!!result); 26 assertTrue(!!result);
32 return result; 27 return result;
33 }, 28 },
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 * etc.). 75 * etc.).
81 */ 76 */
82 test('custom font size', function() { 77 test('custom font size', function() {
83 settingsPrefs.set( 78 settingsPrefs.set(
84 'prefs.webkit.webprefs.default_font_size', 19); 79 'prefs.webkit.webprefs.default_font_size', 19);
85 assertEquals('Custom', fontSize()); 80 assertEquals('Custom', fontSize());
86 }); 81 });
87 }); 82 });
88 mocha.run(); 83 mocha.run();
89 }); 84 });
OLDNEW
« no previous file with comments | « chrome/test/data/webui/fake_chrome_event.js ('k') | chrome/test/data/webui/settings/cr_settings_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698