OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** @fileoverview Runs the Media Router Polymer elements tests. */ | 5 /** @fileoverview Runs the Media Router Polymer elements tests. */ |
6 | 6 |
7 /** @const {string} Path to source root. */ | 7 /** @const {string} Path to source root. */ |
8 var ROOT_PATH = '../../../../../'; | 8 var ROOT_PATH = '../../../../../'; |
9 | 9 |
10 // Polymer BrowserTest fixture. | 10 // Polymer BrowserTest fixture. |
(...skipping 13 matching lines...) Expand all Loading... |
24 /** @override */ | 24 /** @override */ |
25 browsePreload: 'chrome://media-router/', | 25 browsePreload: 'chrome://media-router/', |
26 | 26 |
27 commandLineSwitches: [{ | 27 commandLineSwitches: [{ |
28 switchName: 'enable-media-router', | 28 switchName: 'enable-media-router', |
29 }], | 29 }], |
30 | 30 |
31 // List tests for individual elements. | 31 // List tests for individual elements. |
32 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ | 32 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ |
33 'issue_banner_tests.js', | 33 'issue_banner_tests.js', |
| 34 'media_router_container_tests.js', |
34 'route_details_tests.js', | 35 'route_details_tests.js', |
35 ]), | 36 ]), |
36 }; | 37 }; |
37 | 38 |
38 // Runs all tests. | 39 // Runs all tests. |
39 TEST_F('MediaRouterElementsBrowserTest', 'MediaRouterElementsTest', function() { | 40 TEST_F('MediaRouterElementsBrowserTest', 'MediaRouterElementsTest', function() { |
40 // Register mocha tests for each element. | 41 // Register mocha tests for each element. |
41 issue_banner.registerTests(); | 42 issue_banner.registerTests(); |
| 43 media_router_container.registerTests(); |
42 route_details.registerTests(); | 44 route_details.registerTests(); |
43 | 45 |
44 // Run all registered tests. | 46 // Run all registered tests. |
45 mocha.run(); | 47 mocha.run(); |
46 }); | 48 }); |
OLD | NEW |