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

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

Issue 1920293004: Hide pseudo sinks when user has no hosted domain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pseudo sink empty domain test Created 4 years, 8 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
Index: chrome/test/data/webui/media_router/media_router_container_search_tests.js
diff --git a/chrome/test/data/webui/media_router/media_router_container_search_tests.js b/chrome/test/data/webui/media_router/media_router_container_search_tests.js
index 960f2efefd5ee9c9bee26fbea23b927f2f950832..e50f3534651b52cc1f00187efa3ba166e47cf930 100644
--- a/chrome/test/data/webui/media_router/media_router_container_search_tests.js
+++ b/chrome/test/data/webui/media_router/media_router_container_search_tests.js
@@ -411,6 +411,21 @@ cr.define('media_router_container_search', function() {
});
});
+ test('pseudo sink with empty domain is not shown', function(done) {
+ pseudoSink.domain = '';
+ container.allSinks = fakeSinkListWithPseudoSink;
+
+ var searchInput = container.$['sink-search-input'];
+ searchInput.value = foundSink.name;
+ setTimeout(function() {
+ var noMatches = container.$$('#no-search-matches');
+ var searchResults = container.$$('#search-results');
+ checkElementVisible(noMatches, true);
+ checkElementVisible(searchResults, false);
+ done();
+ });
+ });
+
test('pseudo sink search state launching sink id', function() {
var searchState = new PseudoSinkSearchState(pseudoSink);

Powered by Google App Engine
This is Rietveld 408576698