Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(523)

Side by Side Diff: chrome/test/data/webui/media_router/media_router_elements_browsertest.js

Issue 1766473002: [Media Router] Further split media_router_container tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Logical test file split Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/test/data/webui/media_router/media_router_container_tests.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_cast_mode_list_tests.js',
43 'media_router_container_first_run_flow_tests.js',
44 'media_router_container_route_tests.js',
45 'media_router_container_sink_list_tests.js',
43 'media_router_container_filter_tests.js', 46 'media_router_container_filter_tests.js',
44 'media_router_header_tests.js', 47 'media_router_header_tests.js',
45 'media_router_search_highlighter.js', 48 'media_router_search_highlighter.js',
46 'route_details_tests.js', 49 'route_details_tests.js',
47 ]), 50 ]),
48 51
49 /** @override */ 52 /** @override */
50 setUp: function() { 53 setUp: function() {
51 PolymerTest.prototype.setUp.call(this); 54 PolymerTest.prototype.setUp.call(this);
52 55
(...skipping 24 matching lines...) Expand all
77 80
78 // Enable when warning is resolved. 81 // Enable when warning is resolved.
79 // AX_TEXT_04: http://crbug.com/591554 82 // AX_TEXT_04: http://crbug.com/591554
80 this.accessibilityAuditConfig.ignoreSelectors( 83 this.accessibilityAuditConfig.ignoreSelectors(
81 'linkWithUnclearPurpose', '#device-missing > A'); 84 'linkWithUnclearPurpose', '#device-missing > A');
82 }, 85 },
83 }; 86 };
84 87
85 TEST_F('MediaRouterElementsBrowserTest', 'MediaRouterElementsTestIssueBanner', 88 TEST_F('MediaRouterElementsBrowserTest', 'MediaRouterElementsTestIssueBanner',
86 function() { 89 function() {
87 // Register mocha tests for the issue banner.
88 issue_banner.registerTests(); 90 issue_banner.registerTests();
89
90 // Run all registered tests.
91 mocha.run(); 91 mocha.run();
92 }); 92 });
93 93
94 // See bugs.chromium.org issue 591227 94 // The media-router-container tests are being split into multiple parts due to
95 // timeout issues on bots.
95 TEST_F('MediaRouterElementsBrowserTest', 96 TEST_F('MediaRouterElementsBrowserTest',
96 'DISABLED_MediaRouterElementsTestMediaRouterContainer', 97 'MediaRouterElementsTestMediaRouterContainerCastModeList',
apacible 2016/03/07 17:59:05 nit: Since all the tests are under "MediaRouterEle
btolsch 2016/03/07 20:20:15 Done.
97 function() { 98 function() {
98 // Register mocha tests for the container. 99 media_router_container_cast_mode_list.registerTests();
99 media_router_container.registerTests(); 100 mocha.run();
101 });
100 102
101 // Run all registered tests. 103 TEST_F('MediaRouterElementsBrowserTest',
104 'MediaRouterElementsTestMediaRouterContainerFirstRunFlow',
105 function() {
106 media_router_container_first_run_flow.registerTests();
107 mocha.run();
108 });
109
110 TEST_F('MediaRouterElementsBrowserTest',
111 'MediaRouterElementsTestMediaRouterContainerRoute',
112 function() {
113 media_router_container_route.registerTests();
114 mocha.run();
115 });
116
117 TEST_F('MediaRouterElementsBrowserTest',
118 'MediaRouterElementsTestMediaRouterContainerSinkList',
119 function() {
120 media_router_container_sink_list.registerTests();
102 mocha.run(); 121 mocha.run();
103 }); 122 });
104 123
105 TEST_F('MediaRouterElementsBrowserTest', 124 TEST_F('MediaRouterElementsBrowserTest',
106 'MediaRouterElementsTestMediaRouterContainerFilter', 125 'MediaRouterElementsTestMediaRouterContainerFilter',
107 function() { 126 function() {
108 // Register mocha tests for the container filter.
109 media_router_container_filter.registerTests(); 127 media_router_container_filter.registerTests();
110
111 // Run all registered tests.
112 mocha.run(); 128 mocha.run();
113 }); 129 });
114 130
115 TEST_F('MediaRouterElementsBrowserTest', 131 TEST_F('MediaRouterElementsBrowserTest',
116 'MediaRouterElementsTestMediaRouterHeader', 132 'MediaRouterElementsTestMediaRouterHeader',
117 function() { 133 function() {
118 // Register mocha tests for the header.
119 media_router_header.registerTests(); 134 media_router_header.registerTests();
120
121 // Run all registered tests.
122 mocha.run(); 135 mocha.run();
123 }); 136 });
124 137
125 TEST_F('MediaRouterElementsBrowserTest', 138 TEST_F('MediaRouterElementsBrowserTest',
126 'MediaRouterElementsTestMediaRouterSearchHighlighter', 139 'MediaRouterElementsTestMediaRouterSearchHighlighter',
127 function() { 140 function() {
128 // Register mocha tests for the search highlighter.
129 media_router_search_highlighter.registerTests(); 141 media_router_search_highlighter.registerTests();
130
131 // Run all registered tests.
132 mocha.run(); 142 mocha.run();
133 }); 143 });
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.
139 route_details.registerTests(); 148 route_details.registerTests();
140
141 // Run all registered tests.
142 mocha.run(); 149 mocha.run();
143 }); 150 });
OLDNEW
« no previous file with comments | « chrome/test/data/webui/media_router/media_router_container_tests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698