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

Unified Diff: chrome/test/data/webui/settings/navigation_browsertest.js

Issue 2039603002: MD Settings: Fix scroll to section (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test coverage 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
Index: chrome/test/data/webui/settings/navigation_browsertest.js
diff --git a/chrome/test/data/webui/settings/navigation_browsertest.js b/chrome/test/data/webui/settings/navigation_browsertest.js
new file mode 100644
index 0000000000000000000000000000000000000000..ea453648e63a4fed2eb80c8403d2871b106ec51c
--- /dev/null
+++ b/chrome/test/data/webui/settings/navigation_browsertest.js
@@ -0,0 +1,36 @@
+// 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 Suite of tests for navigating the Settings page. */
+
+GEN_INCLUDE(['settings_page_browsertest.js']);
+
+/**
+ * @constructor
+ * @extends {SettingsPageBrowserTest}
+*/
+function SettingsNavigationBrowserTest() {}
+
+SettingsNavigationBrowserTest.prototype = {
+ __proto__: SettingsPageBrowserTest.prototype,
+
+ /** @override */
+ extraLibraries: SettingsPageBrowserTest.prototype.extraLibraries.concat([
+ 'navigation_tests.js',
dpapad 2016/06/03 22:59:50 Can we not put this test under one of our existing
michaelpg 2016/06/03 23:31:57 Not really, and there's plenty of precedent for th
+ ]),
+};
+
+// Times out on debug builders and may time out on memory bots because
+// the Settings page can take several seconds to load in a Release build
+// and several times that in a Debug build. See https://crbug.com/558434.
+GEN('#if defined(MEMORY_SANITIZER) || !defined(NDEBUG)');
+GEN('#define MAYBE_Navigation DISABLED_Navigation');
+GEN('#else');
+GEN('#define MAYBE_Navigation Navigation');
+GEN('#endif');
+
+TEST_F('SettingsNavigationBrowserTest', 'MAYBE_Navigation', function() {
+ navigation_tests.registerTests(this);
+ mocha.run();
+});

Powered by Google App Engine
This is Rietveld 408576698