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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/help_page_browsertest.js
diff --git a/chrome/test/data/webui/settings/help_page_browsertest.js b/chrome/test/data/webui/settings/help_page_browsertest.js
new file mode 100644
index 0000000000000000000000000000000000000000..18310cb788f81fd1f0d733cf2f0785084a63186a
--- /dev/null
+++ b/chrome/test/data/webui/settings/help_page_browsertest.js
@@ -0,0 +1,44 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/** @fileoverview Material Help page tests. */
+
+GEN_INCLUDE(['settings_page_browsertest.js']);
+GEN('#include "base/command_line.h"');
+
+/**
+ * @constructor
+ * @extends {SettingsPageBrowserTest}
+*/
+function SettingsHelpPageBrowserTest() {}
+
+SettingsHelpPageBrowserTest.prototype = {
+ __proto__: SettingsPageBrowserTest.prototype,
+
+ /** @override */
+ browsePreload: 'chrome://help/',
+
+ commandLineSwitches: [{switchName: 'enable-features',
+ switchValue: 'MaterialDesignSettings'}],
+
+ /** @override */
+ extraLibraries: PolymerTest.getLibraries(ROOT_PATH),
+};
+
+TEST_F('SettingsHelpPageBrowserTest', 'Load', function() {
+ // Assign |self| to |this| instead of binding since 'this' in suite()
+ // and test() will be a Mocha 'Suite' or 'Test' instance.
+ var self = this;
+
+ // Register mocha tests.
+ suite('Help page', function() {
+ test('about section', function() {
+ var page = self.getPage('about');
+ expectTrue(!!self.getSection(page, 'about'));
+ });
+ });
+
+ // Run all registered tests.
+ mocha.run();
+});
« 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