Chromium Code Reviews| 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 | 32 |
| 33 commandLineSwitches: [{ | 33 commandLineSwitches: [{ |
| 34 switchName: 'media-router', switchValue: '1' | 34 switchName: 'media-router', switchValue: '1' |
| 35 }], | 35 }], |
| 36 | 36 |
| 37 // List tests for individual elements. The media_router_container tests are | 37 // List tests for individual elements. The media_router_container tests are |
| 38 // split between media_router_container_tests.js and | 38 // split between media_router_container_tests.js and |
| 39 // media_router_container_filter_tests.js. | 39 // media_router_container_filter_tests.js. |
| 40 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ | 40 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ |
| 41 'issue_banner_tests.js', | 41 'issue_banner_tests.js', |
| 42 'media_router_container_tests.js', | 42 'media_router_container_part_one_tests.js', |
| 43 'media_router_container_part_two_tests.js', | |
| 43 'media_router_container_filter_tests.js', | 44 'media_router_container_filter_tests.js', |
| 44 'media_router_header_tests.js', | 45 'media_router_header_tests.js', |
| 45 'media_router_search_highlighter.js', | 46 'media_router_search_highlighter.js', |
| 46 'route_details_tests.js', | 47 'route_details_tests.js', |
| 47 ]), | 48 ]), |
| 48 | 49 |
| 49 /** @override */ | 50 /** @override */ |
| 50 setUp: function() { | 51 setUp: function() { |
| 51 PolymerTest.prototype.setUp.call(this); | 52 PolymerTest.prototype.setUp.call(this); |
| 52 | 53 |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 77 | 78 |
| 78 // Enable when warning is resolved. | 79 // Enable when warning is resolved. |
| 79 // AX_TEXT_04: http://crbug.com/591554 | 80 // AX_TEXT_04: http://crbug.com/591554 |
| 80 this.accessibilityAuditConfig.ignoreSelectors( | 81 this.accessibilityAuditConfig.ignoreSelectors( |
| 81 'linkWithUnclearPurpose', '#device-missing > A'); | 82 'linkWithUnclearPurpose', '#device-missing > A'); |
| 82 }, | 83 }, |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 TEST_F('MediaRouterElementsBrowserTest', 'MediaRouterElementsTestIssueBanner', | 86 TEST_F('MediaRouterElementsBrowserTest', 'MediaRouterElementsTestIssueBanner', |
| 86 function() { | 87 function() { |
| 87 // Register mocha tests for the issue banner. | 88 // Register mocha tests for the issue banner. |
|
apacible
2016/03/04 17:21:33
Also remove comments here.
btolsch
2016/03/04 20:00:37
Done.
| |
| 88 issue_banner.registerTests(); | 89 issue_banner.registerTests(); |
| 89 | 90 |
|
apacible
2016/03/04 17:21:33
nit: The newline here can also be removed from all
btolsch
2016/03/04 20:00:37
Done.
| |
| 90 // Run all registered tests. | 91 // Run all registered tests. |
| 91 mocha.run(); | 92 mocha.run(); |
| 92 }); | 93 }); |
| 93 | 94 |
| 94 // See bugs.chromium.org issue 591227 | 95 // The media_router_container tests are being split into multiple parts due to |
| 96 // timeout issues on bots. The tests are separated such that their runtimes are | |
| 97 // similar, not necessarily to separate smaller logical units. | |
| 95 TEST_F('MediaRouterElementsBrowserTest', | 98 TEST_F('MediaRouterElementsBrowserTest', |
| 96 'DISABLED_MediaRouterElementsTestMediaRouterContainer', | 99 'MediaRouterElementsTestMediaRouterContainerPartOne', |
| 97 function() { | 100 function() { |
| 98 // Register mocha tests for the container. | 101 media_router_container_part_one.registerTests(); |
| 99 media_router_container.registerTests(); | |
| 100 | 102 |
| 101 // Run all registered tests. | 103 mocha.run(); |
| 104 }); | |
| 105 | |
| 106 TEST_F('MediaRouterElementsBrowserTest', | |
| 107 'MediaRouterElementsTestMediaRouterContainerPartTwo', | |
| 108 function() { | |
| 109 media_router_container_part_two.registerTests(); | |
| 110 | |
| 102 mocha.run(); | 111 mocha.run(); |
| 103 }); | 112 }); |
| 104 | 113 |
| 105 TEST_F('MediaRouterElementsBrowserTest', | 114 TEST_F('MediaRouterElementsBrowserTest', |
| 106 'MediaRouterElementsTestMediaRouterContainerFilter', | 115 'MediaRouterElementsTestMediaRouterContainerFilter', |
| 107 function() { | 116 function() { |
| 108 // Register mocha tests for the container filter. | |
| 109 media_router_container_filter.registerTests(); | 117 media_router_container_filter.registerTests(); |
| 110 | 118 |
| 111 // Run all registered tests. | |
| 112 mocha.run(); | 119 mocha.run(); |
| 113 }); | 120 }); |
| 114 | 121 |
| 115 TEST_F('MediaRouterElementsBrowserTest', | 122 TEST_F('MediaRouterElementsBrowserTest', |
| 116 'MediaRouterElementsTestMediaRouterHeader', | 123 'MediaRouterElementsTestMediaRouterHeader', |
| 117 function() { | 124 function() { |
| 118 // Register mocha tests for the header. | |
| 119 media_router_header.registerTests(); | 125 media_router_header.registerTests(); |
| 120 | 126 |
| 121 // Run all registered tests. | |
| 122 mocha.run(); | 127 mocha.run(); |
| 123 }); | 128 }); |
| 124 | 129 |
| 125 TEST_F('MediaRouterElementsBrowserTest', | 130 TEST_F('MediaRouterElementsBrowserTest', |
| 126 'MediaRouterElementsTestMediaRouterSearchHighlighter', | 131 'MediaRouterElementsTestMediaRouterSearchHighlighter', |
| 127 function() { | 132 function() { |
| 128 // Register mocha tests for the search highlighter. | |
| 129 media_router_search_highlighter.registerTests(); | 133 media_router_search_highlighter.registerTests(); |
| 130 | 134 |
| 131 // Run all registered tests. | |
| 132 mocha.run(); | 135 mocha.run(); |
| 133 }); | 136 }); |
| 134 | 137 |
| 135 TEST_F('MediaRouterElementsBrowserTest', | 138 TEST_F('MediaRouterElementsBrowserTest', |
| 136 'MediaRouterElementsTestMediaRouterRouteDetails', | 139 'MediaRouterElementsTestMediaRouterRouteDetails', |
| 137 function() { | 140 function() { |
| 138 // Register mocha tests for the route details. | |
| 139 route_details.registerTests(); | 141 route_details.registerTests(); |
| 140 | 142 |
| 141 // Run all registered tests. | |
| 142 mocha.run(); | 143 mocha.run(); |
| 143 }); | 144 }); |
| OLD | NEW |