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