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.
5 /** @fileoverview Runs the Media Router Polymer elements tests. */
7 /** @const {string} Path to source root. */
8 var ROOT_PATH
= '../../../../../';
10 // Polymer BrowserTest fixture.
12 [ROOT_PATH
+ 'chrome/test/data/webui/polymer_browser_test_base.js']);
15 * Test fixture for Media Router Polymer elements.
17 * @extends {PolymerTest}
19 function MediaRouterElementsBrowserTest() {}
21 MediaRouterElementsBrowserTest
.prototype = {
22 __proto__
: PolymerTest
.prototype,
25 browsePreload
: 'chrome://media-router/',
27 commandLineSwitches
: [{
28 switchName
: 'enable-media-router',
31 // List tests for individual elements.
32 extraLibraries
: PolymerTest
.getLibraries(ROOT_PATH
).concat([
33 'issue_banner_tests.js',
34 'media_router_container_tests.js',
35 'route_details_tests.js',
40 PolymerTest
.prototype.setUp
.call(this);
42 // TODO(apacible): Enable when false positive AX_FOCUS_01 bug is fixed.
43 // https://github.com/GoogleChrome/accessibility-developer-tools/issues/171
44 this.accessibilityAuditConfig
.auditRulesToIgnore
.push(
45 'focusableElementNotVisibleAndNotAriaHidden');
50 TEST_F('MediaRouterElementsBrowserTest', 'MediaRouterElementsTest', function() {
51 // Register mocha tests for each element.
52 issue_banner
.registerTests();
53 media_router_container
.registerTests();
54 route_details
.registerTests();
56 // Run all registered tests.