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

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

Issue 2749513004: MD Settings: adjust iron-list focus row behaviors. (Closed)
Patch Set: fix test Created 3 years, 9 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/cr_settings_interactive_ui_tests.js
diff --git a/chrome/test/data/webui/settings/cr_settings_interactive_ui_tests.js b/chrome/test/data/webui/settings/cr_settings_interactive_ui_tests.js
new file mode 100644
index 0000000000000000000000000000000000000000..bc3659e85ae8b41d22b50feef356f69a3811c299
--- /dev/null
+++ b/chrome/test/data/webui/settings/cr_settings_interactive_ui_tests.js
@@ -0,0 +1,66 @@
+// Copyright 2015 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 Runs the Polymer Settings interactive UI tests. */
+
+/** @const {string} Path to source root. */
+var ROOT_PATH = '../../../../../';
+
+// Polymer BrowserTest fixture.
+GEN_INCLUDE(
+ [ROOT_PATH + 'chrome/test/data/webui/polymer_interactive_ui_test.js']);
+
+/**
+ * Test fixture for interactive Polymer Settings elements.
+ * @constructor
+ * @extends {PolymerInteractiveUITest}
+ */
+function CrSettingsInteractiveUITest() {}
+
+CrSettingsInteractiveUITest.prototype = {
+ __proto__: PolymerInteractiveUITest.prototype,
+
+ /** @override */
+ get browsePreload() {
+ throw 'this is abstract and should be overriden by subclasses';
+ },
+
+ /** @override */
+ extraLibraries: PolymerTest.getLibraries(ROOT_PATH),
+
+ /** @override */
+ setUp: function() {
+ PolymerTest.prototype.setUp.call(this);
+ // We aren't loading the main document.
+ this.accessibilityAuditConfig.ignoreSelectors('humanLangMissing', 'html');
+
+ // TODO(michaelpg): Re-enable after bringing in fix for
+ // https://github.com/PolymerElements/paper-slider/issues/131.
+ this.accessibilityAuditConfig.ignoreSelectors(
+ 'badAriaAttributeValue', 'paper-slider');
+ },
+};
+
+/**
+ * Test fixture for FocusRowBehavior.
+ * @constructor
+ * @extends {CrSettingsInteractiveUITest}
+ */
+function CrSettingsFocusRowBehavior() {}
+
+CrSettingsFocusRowBehavior.prototype = {
+ __proto__: CrSettingsInteractiveUITest.prototype,
+
+ /** @override */
+ browsePreload: 'chrome://md-settings/focus_row_behavior.html',
+
+ /** @override */
+ extraLibraries: CrSettingsInteractiveUITest.prototype.extraLibraries.concat([
+ 'focus_row_behavior_test.js',
+ ]),
+};
+
+TEST_F('CrSettingsFocusRowBehavior', 'FocusTest', function() {
+ mocha.run();
+});
« no previous file with comments | « chrome/test/data/webui/settings/cr_settings_browsertest.js ('k') | chrome/test/data/webui/settings/focus_row_behavior_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698