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

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

Issue 2095043004: Fix material Help page redirect, again (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: #YOLO 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 | « chrome/chrome_tests.gypi ('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
(Empty)
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
3 // found in the LICENSE file.
4
5 /** @fileoverview Material Help page tests. */
6
7 GEN_INCLUDE(['settings_page_browsertest.js']);
8 GEN('#include "base/command_line.h"');
9
10 /**
11 * @constructor
12 * @extends {SettingsPageBrowserTest}
13 */
14 function SettingsHelpPageBrowserTest() {}
15
16 SettingsHelpPageBrowserTest.prototype = {
17 __proto__: SettingsPageBrowserTest.prototype,
18
19 /** @override */
20 browsePreload: 'chrome://help/',
21
22 commandLineSwitches: [{switchName: 'enable-features',
23 switchValue: 'MaterialDesignSettings'}],
24
25 /** @override */
26 extraLibraries: PolymerTest.getLibraries(ROOT_PATH),
27 };
28
29 TEST_F('SettingsHelpPageBrowserTest', 'Load', function() {
30 // Assign |self| to |this| instead of binding since 'this' in suite()
31 // and test() will be a Mocha 'Suite' or 'Test' instance.
32 var self = this;
33
34 // Register mocha tests.
35 suite('Help page', function() {
36 test('about section', function() {
37 var page = self.getPage('about');
38 expectTrue(!!self.getSection(page, 'about'));
39 });
40 });
41
42 // Run all registered tests.
43 mocha.run();
44 });
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698