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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /** @fileoverview Runs the Polymer Settings interactive UI tests. */
6
7 /** @const {string} Path to source root. */
8 var ROOT_PATH = '../../../../../';
9
10 // Polymer BrowserTest fixture.
11 GEN_INCLUDE(
12 [ROOT_PATH + 'chrome/test/data/webui/polymer_interactive_ui_test.js']);
13
14 /**
15 * Test fixture for interactive Polymer Settings elements.
16 * @constructor
17 * @extends {PolymerInteractiveUITest}
18 */
19 function CrSettingsInteractiveUITest() {}
20
21 CrSettingsInteractiveUITest.prototype = {
22 __proto__: PolymerInteractiveUITest.prototype,
23
24 /** @override */
25 get browsePreload() {
26 throw 'this is abstract and should be overriden by subclasses';
27 },
28
29 /** @override */
30 extraLibraries: PolymerTest.getLibraries(ROOT_PATH),
31
32 /** @override */
33 setUp: function() {
34 PolymerTest.prototype.setUp.call(this);
35 // We aren't loading the main document.
36 this.accessibilityAuditConfig.ignoreSelectors('humanLangMissing', 'html');
37
38 // TODO(michaelpg): Re-enable after bringing in fix for
39 // https://github.com/PolymerElements/paper-slider/issues/131.
40 this.accessibilityAuditConfig.ignoreSelectors(
41 'badAriaAttributeValue', 'paper-slider');
42 },
43 };
44
45 /**
46 * Test fixture for FocusRowBehavior.
47 * @constructor
48 * @extends {CrSettingsInteractiveUITest}
49 */
50 function CrSettingsFocusRowBehavior() {}
51
52 CrSettingsFocusRowBehavior.prototype = {
53 __proto__: CrSettingsInteractiveUITest.prototype,
54
55 /** @override */
56 browsePreload: 'chrome://md-settings/focus_row_behavior.html',
57
58 /** @override */
59 extraLibraries: CrSettingsInteractiveUITest.prototype.extraLibraries.concat([
60 'focus_row_behavior_test.js',
61 ]),
62 };
63
64 TEST_F('CrSettingsFocusRowBehavior', 'FocusTest', function() {
65 mocha.run();
66 });
OLDNEW
« 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