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

Unified Diff: chrome/test/data/webui/media_router/media_router_container_cast_mode_list_tests.js

Issue 2930983003: [Media Router UI] Fix pseudo sink logic for cast modes. (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/media_router/media_router_container_cast_mode_list_tests.js
diff --git a/chrome/test/data/webui/media_router/media_router_container_cast_mode_list_tests.js b/chrome/test/data/webui/media_router/media_router_container_cast_mode_list_tests.js
index c8a02d5dea9950273d158b3c459e55ef4d22cb3c..f5632189b90e409038324fb879f19926bbe75d1c 100644
--- a/chrome/test/data/webui/media_router/media_router_container_cast_mode_list_tests.js
+++ b/chrome/test/data/webui/media_router/media_router_container_cast_mode_list_tests.js
@@ -244,6 +244,25 @@ cr.define('media_router_container_cast_mode_list', function() {
});
});
+ // Tests that pseudo sinks are ignored for the purpose of computing
+ // which cast mode to show.
+ test('cast modes not affected by pseudo sink', function(done) {
+ assertEquals(media_router.CastModeType.AUTO,
+ container.shownCastModeValue_);
+ container.castModeList = fakeCastModeList;
+ var sink = new media_router.Sink('pseudo-sink-id',
+ 'Pseudo sink', null, null, media_router.SinkIconType.GENERIC,
+ media_router.SinkStatus.ACTIVE, /* DESKTOP */ 0x4);
+ sink.isPseudoSink = true;
+ container.allSinks = [sink];
+
+ setTimeout(function() {
+ assertEquals(media_router.CastModeType.AUTO,
+ container.shownCastModeValue_);
+ done();
+ });
+ });
+
// Tests for expected visible UI when the view is CAST_MODE_LIST.
test('cast mode list state visibility', function(done) {
container.showCastModeList_();
« no previous file with comments | « chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698