Chromium Code Reviews| 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(); |
| +}); |