| 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 21 matching lines...) Expand all Loading... |
| 32 // split between media_router_container_tests.js and | 32 // split between media_router_container_tests.js and |
| 33 // media_router_container_filter_tests.js. | 33 // media_router_container_filter_tests.js. |
| 34 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ | 34 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ |
| 35 'issue_banner_tests.js', | 35 'issue_banner_tests.js', |
| 36 'media_router_container_tests.js', | 36 'media_router_container_tests.js', |
| 37 'media_router_container_filter_tests.js', | 37 'media_router_container_filter_tests.js', |
| 38 'media_router_header_tests.js', | 38 'media_router_header_tests.js', |
| 39 'media_router_search_highlighter.js', | 39 'media_router_search_highlighter.js', |
| 40 'route_details_tests.js', | 40 'route_details_tests.js', |
| 41 ]), | 41 ]), |
| 42 |
| 43 /** @override */ |
| 44 setUp: function() { |
| 45 PolymerTest.prototype.setUp.call(this); |
| 46 |
| 47 // This element is used as a focus placeholder on dialog open, then |
| 48 // deleted. The user will be unable to tab to it. Remove when there is a |
| 49 // long term fix. |
| 50 this.accessibilityAuditConfig.ignoreSelectors( |
| 51 'focusableElementNotVisibleAndNotAriaHidden', '#focus-placeholder'); |
| 52 }, |
| 42 }; | 53 }; |
| 43 | 54 |
| 44 TEST_F('MediaRouterElementsBrowserTest', 'MediaRouterElementsTestIssueBanner', | 55 TEST_F('MediaRouterElementsBrowserTest', 'MediaRouterElementsTestIssueBanner', |
| 45 function() { | 56 function() { |
| 46 // Register mocha tests for the issue banner. | 57 // Register mocha tests for the issue banner. |
| 47 issue_banner.registerTests(); | 58 issue_banner.registerTests(); |
| 48 | 59 |
| 49 // Run all registered tests. | 60 // Run all registered tests. |
| 50 mocha.run(); | 61 mocha.run(); |
| 51 }); | 62 }); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 103 |
| 93 TEST_F('MediaRouterElementsBrowserTest', | 104 TEST_F('MediaRouterElementsBrowserTest', |
| 94 'MediaRouterElementsTestMediaRouterRouteDetails', | 105 'MediaRouterElementsTestMediaRouterRouteDetails', |
| 95 function() { | 106 function() { |
| 96 // Register mocha tests for the route details. | 107 // Register mocha tests for the route details. |
| 97 route_details.registerTests(); | 108 route_details.registerTests(); |
| 98 | 109 |
| 99 // Run all registered tests. | 110 // Run all registered tests. |
| 100 mocha.run(); | 111 mocha.run(); |
| 101 }); | 112 }); |
| OLD | NEW |