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

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

Issue 1707613002: MD Settings: Start device page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments, rebase Created 4 years, 10 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/device_page_browsertest_chromeos.js
diff --git a/chrome/test/data/webui/settings/device_page_browsertest_chromeos.js b/chrome/test/data/webui/settings/device_page_browsertest_chromeos.js
new file mode 100644
index 0000000000000000000000000000000000000000..fdaf69b08de97ef23aac5174992e80c46cc131d7
--- /dev/null
+++ b/chrome/test/data/webui/settings/device_page_browsertest_chromeos.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 Suite of tests for the Settings Device page. */
+
+GEN_INCLUDE(['settings_page_browsertest.js']);
+
+/**
+ * @constructor
+ * @extends {SettingsPageBrowserTest}
+*/
+function SettingsDevicePageBrowserTest() {}
+
+SettingsDevicePageBrowserTest.prototype = {
+ __proto__: SettingsPageBrowserTest.prototype
+};
+
+// 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_DevicePage DISABLED_DevicePage');
+GEN('#else');
+GEN('#define MAYBE_DevicePage DevicePage');
+GEN('#endif');
+
+TEST_F('SettingsDevicePageBrowserTest', 'MAYBE_DevicePage', 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('SettingsDevicePage', function() {
+ test('device section', function() {
+ var page = self.getPage('basic');
+ var deviceSection = self.getSection(page, 'device');
+ expectTrue(!!deviceSection);
+ });
+ });
+
+ // Run all registered tests.
+ mocha.run();
+});

Powered by Google App Engine
This is Rietveld 408576698