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_part1_tests.js', |
| 43 'media_router_container_part2_tests.js', | |
|
imcheng
2016/03/04 00:26:58
I see you have moved most of the cast mode list re
btolsch
2016/03/04 02:14:38
Well, this isn't really a logical split. It was b
apacible
2016/03/04 17:21:33
Would it make sense to split tests based on views
btolsch
2016/03/04 20:00:37
Initially I was hesitant to do that because of the
apacible
2016/03/07 17:59:04
Let's pull out all of the properties / setup / cus
btolsch
2016/03/07 20:20:15
Done.
| |
| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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. |
| 88 issue_banner.registerTests(); | 89 issue_banner.registerTests(); |
| 89 | 90 |
| 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 TEST_F('MediaRouterElementsBrowserTest', | 95 TEST_F('MediaRouterElementsBrowserTest', |
|
imcheng
2016/03/04 00:26:59
Since we are at the point where it is necessary to
btolsch
2016/03/04 02:14:37
Done.
| |
| 96 'DISABLED_MediaRouterElementsTestMediaRouterContainer', | 96 'MediaRouterElementsTestMediaRouterContainerPart1', |
| 97 function() { | 97 function() { |
| 98 // Register mocha tests for the container. | 98 // Register mocha tests for the container. |
|
apacible
2016/03/04 01:25:29
This comment can also be removed from all test cas
btolsch
2016/03/04 02:14:37
Done.
| |
| 99 media_router_container.registerTests(); | 99 media_router_container_part1.registerTests(); |
| 100 | 100 |
| 101 // Run all registered tests. | 101 // Run all registered tests. |
|
imcheng
2016/03/04 00:26:58
This comment can be removed from all test cases.
btolsch
2016/03/04 02:14:37
Done.
| |
| 102 mocha.run(); | 102 mocha.run(); |
| 103 }); | |
| 104 | |
| 105 TEST_F('MediaRouterElementsBrowserTest', | |
| 106 'MediaRouterElementsTestMediaRouterContainerPart2', | |
| 107 function() { | |
| 108 // Register mocha tests for the container. | |
| 109 media_router_container_part2.registerTests(); | |
| 110 | |
| 111 // Run all registered tests. | |
| 112 mocha.run(); | |
| 103 }); | 113 }); |
| 104 | 114 |
| 105 TEST_F('MediaRouterElementsBrowserTest', | 115 TEST_F('MediaRouterElementsBrowserTest', |
| 106 'MediaRouterElementsTestMediaRouterContainerFilter', | 116 'MediaRouterElementsTestMediaRouterContainerFilter', |
| 107 function() { | 117 function() { |
| 108 // Register mocha tests for the container filter. | 118 // Register mocha tests for the container filter. |
| 109 media_router_container_filter.registerTests(); | 119 media_router_container_filter.registerTests(); |
| 110 | 120 |
| 111 // Run all registered tests. | 121 // Run all registered tests. |
| 112 mocha.run(); | 122 mocha.run(); |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 134 | 144 |
| 135 TEST_F('MediaRouterElementsBrowserTest', | 145 TEST_F('MediaRouterElementsBrowserTest', |
| 136 'MediaRouterElementsTestMediaRouterRouteDetails', | 146 'MediaRouterElementsTestMediaRouterRouteDetails', |
| 137 function() { | 147 function() { |
| 138 // Register mocha tests for the route details. | 148 // Register mocha tests for the route details. |
| 139 route_details.registerTests(); | 149 route_details.registerTests(); |
| 140 | 150 |
| 141 // Run all registered tests. | 151 // Run all registered tests. |
| 142 mocha.run(); | 152 mocha.run(); |
| 143 }); | 153 }); |
| OLD | NEW |