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 TEST_F('MediaRouterElementsBrowserTest', 'MediaRouterElementsTest', function() {
41 // Register mocha tests for each element.
42 issue_banner.registerTests();
43 media_router_container.registerTests();
44 route_details.registerTests();
46 // Run all registered tests.