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

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

Issue 2176613003: [Media Router] Clean up issues related code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 4 years 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/issue_banner_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 Provides basic utility functions and variables for 5 /** @fileoverview Provides basic utility functions and variables for
6 * media-router-container tests. 6 * media-router-container tests.
7 */ 7 */
8 8
9 cr.define('media_router_container_test_base', function() { 9 cr.define('media_router_container_test_base', function() {
10 function init(container) { 10 function init(container) {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 */ 70 */
71 var checkElementText = function(expected, element) { 71 var checkElementText = function(expected, element) {
72 assertEquals(expected.trim(), element.textContent.trim()); 72 assertEquals(expected.trim(), element.textContent.trim());
73 }; 73 };
74 74
75 /** 75 /**
76 * The blocking issue to show. 76 * The blocking issue to show.
77 * @type {!media_router.Issue} 77 * @type {!media_router.Issue}
78 */ 78 */
79 var fakeBlockingIssue = new media_router.Issue( 79 var fakeBlockingIssue = new media_router.Issue(
80 'issue id 1', 'Issue Title 1', 'Issue Message 1', 0, 1, 80 1, 'Issue Title 1', 'Issue Message 1', 0, 1,
81 'route id 1', true, 1234); 81 'route id 1', true, 1234);
82 82
83 /** 83 /**
84 * The list of CastModes to show. 84 * The list of CastModes to show.
85 * @type {!Array<!media_router.CastMode>} 85 * @type {!Array<!media_router.CastMode>}
86 */ 86 */
87 var fakeCastModeList = [ 87 var fakeCastModeList = [
88 new media_router.CastMode(0x1, 'Description 0', 'google.com'), 88 new media_router.CastMode(0x1, 'Description 0', 'google.com'),
89 new media_router.CastMode(0x2, 'Description 1', null), 89 new media_router.CastMode(0x2, 'Description 1', null),
90 new media_router.CastMode(0x4, 'Description 2', null), 90 new media_router.CastMode(0x4, 'Description 2', null),
91 ]; 91 ];
92 92
93 /** 93 /**
94 * The list of CastModes to show with non-default modes only. 94 * The list of CastModes to show with non-default modes only.
95 * @type {!Array<!media_router.CastMode>} 95 * @type {!Array<!media_router.CastMode>}
96 */ 96 */
97 var fakeCastModeListWithNonDefaultModesOnly = [ 97 var fakeCastModeListWithNonDefaultModesOnly = [
98 new media_router.CastMode(0x2, 'Description 1', null), 98 new media_router.CastMode(0x2, 'Description 1', null),
99 new media_router.CastMode(0x4, 'Description 2', null), 99 new media_router.CastMode(0x4, 'Description 2', null),
100 new media_router.CastMode(0x8, 'Description 3', null), 100 new media_router.CastMode(0x8, 'Description 3', null),
101 ]; 101 ];
102 102
103 /** 103 /**
104 * The blocking issue to show. 104 * The blocking issue to show.
105 * @type {!media_router.Issue} 105 * @type {!media_router.Issue}
106 */ 106 */
107 var fakeNonBlockingIssue = new media_router.Issue( 107 var fakeNonBlockingIssue = new media_router.Issue(
108 'issue id 2', 'Issue Title 2', 'Issue Message 2', 0, 1, 108 2, 'Issue Title 2', 'Issue Message 2', 0, 1,
109 'route id 2', false, 1234); 109 'route id 2', false, 1234);
110 110
111 /** 111 /**
112 * The list of current routes. 112 * The list of current routes.
113 * @type {!Array<!media_router.Route>} 113 * @type {!Array<!media_router.Route>}
114 */ 114 */
115 var fakeRouteList = [ 115 var fakeRouteList = [
116 new media_router.Route('id 1', 'sink id 1', 'Title 1', 0, true, false), 116 new media_router.Route('id 1', 'sink id 1', 'Title 1', 0, true, false),
117 new media_router.Route('id 2', 'sink id 2', 'Title 2', 1, false, true), 117 new media_router.Route('id 2', 'sink id 2', 'Title 2', 1, false, true),
118 ]; 118 ];
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 fakeRouteList: fakeRouteList, 194 fakeRouteList: fakeRouteList,
195 fakeRouteListWithLocalRoutesOnly: fakeRouteListWithLocalRoutesOnly, 195 fakeRouteListWithLocalRoutesOnly: fakeRouteListWithLocalRoutesOnly,
196 fakeSinkList: fakeSinkList, 196 fakeSinkList: fakeSinkList,
197 searchTextAll: searchTextAll, 197 searchTextAll: searchTextAll,
198 searchTextNone: searchTextNone, 198 searchTextNone: searchTextNone,
199 searchTextOne: searchTextOne, 199 searchTextOne: searchTextOne,
200 }; 200 };
201 } 201 }
202 return {init: init}; 202 return {init: init};
203 }); 203 });
OLDNEW
« no previous file with comments | « chrome/test/data/webui/media_router/issue_banner_tests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698