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

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

Issue 2913343002: Start removing deprecated Options UI code (Closed)
Patch Set: thestig@ review Created 3 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 | « chrome/test/data/webui/BUILD.gn ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 Material Help page tests. */ 5 /** @fileoverview Material Help page tests. */
6 6
7 GEN_INCLUDE(['settings_page_browsertest.js']); 7 GEN_INCLUDE(['settings_page_browsertest.js']);
8 GEN('#include "base/command_line.h"');
9 8
10 /** 9 /**
11 * @constructor 10 * @constructor
12 * @extends {SettingsPageBrowserTest} 11 * @extends {SettingsPageBrowserTest}
13 */ 12 */
14 function SettingsHelpPageBrowserTest() {} 13 function SettingsHelpPageBrowserTest() {}
15 14
16 SettingsHelpPageBrowserTest.prototype = { 15 SettingsHelpPageBrowserTest.prototype = {
17 __proto__: SettingsPageBrowserTest.prototype, 16 __proto__: SettingsPageBrowserTest.prototype,
18 17
19 /** @override */ 18 /** @override */
20 browsePreload: 'chrome://help/', 19 browsePreload: 'chrome://help/',
21 20
22 commandLineSwitches: [{switchName: 'enable-features',
23 switchValue: 'MaterialDesignSettings'}],
24
25 /** @override */ 21 /** @override */
26 extraLibraries: PolymerTest.getLibraries(ROOT_PATH), 22 extraLibraries: PolymerTest.getLibraries(ROOT_PATH),
27 23
28 /** @override */ 24 /** @override */
29 setUp: function() { 25 setUp: function() {
30 // Intentionally bypassing SettingsPageBrowserTest#setUp. 26 // Intentionally bypassing SettingsPageBrowserTest#setUp.
31 PolymerTest.prototype.setUp.call(this); 27 PolymerTest.prototype.setUp.call(this);
32 }, 28 },
33 }; 29 };
34 30
35 TEST_F('SettingsHelpPageBrowserTest', 'Load', function() { 31 TEST_F('SettingsHelpPageBrowserTest', 'Load', function() {
36 // Assign |self| to |this| instead of binding since 'this' in suite() 32 // Assign |self| to |this| instead of binding since 'this' in suite()
37 // and test() will be a Mocha 'Suite' or 'Test' instance. 33 // and test() will be a Mocha 'Suite' or 'Test' instance.
38 var self = this; 34 var self = this;
39 35
40 // Register mocha tests. 36 // Register mocha tests.
41 suite('Help page', function() { 37 suite('Help page', function() {
42 test('about section', function() { 38 test('about section', function() {
43 return self.getPage('about').then(function(page) { 39 return self.getPage('about').then(function(page) {
44 expectTrue(!!self.getSection(page, 'about')); 40 expectTrue(!!self.getSection(page, 'about'));
45 }); 41 });
46 }); 42 });
47 }); 43 });
48 44
49 // Run all registered tests. 45 // Run all registered tests.
50 mocha.run(); 46 mocha.run();
51 }); 47 });
OLDNEW
« no previous file with comments | « chrome/test/data/webui/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698