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

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

Issue 1805813002: [Media Router] Wiring for searching route providers for new sinks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clarifying pseudo sink comments 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_filter_tests.js
diff --git a/chrome/test/data/webui/media_router/media_router_container_filter_tests.js b/chrome/test/data/webui/media_router/media_router_container_filter_tests.js
index f2cfe39b18b9706a9841f8ca3b99948158897a01..b82609059cde19582992c1a67b3b8f03ec394b94 100644
--- a/chrome/test/data/webui/media_router/media_router_container_filter_tests.js
+++ b/chrome/test/data/webui/media_router/media_router_container_filter_tests.js
@@ -40,6 +40,12 @@ cr.define('media_router_container_filter', function() {
var container;
/**
+ * The blocking issue to show.
+ * @type {?media_router.Issue}
+ */
+ var fakeNonBlockingIssue;
+
+ /**
* The list of current routes.
* @type {!Array<!media_router.Route>}
*/
@@ -101,6 +107,7 @@ cr.define('media_router_container_filter', function() {
checkCurrentView = test_base.checkCurrentView;
checkElementsVisibleWithId = test_base.checkElementsVisibleWithId;
checkElementText = test_base.checkElementText;
+ fakeNonBlockingIssue = test_base.fakeNonBlockingIssue;
fakeRouteList = test_base.fakeRouteList;
fakeSinkList = test_base.fakeSinkList;
searchTextAll = test_base.searchTextAll;
@@ -299,6 +306,27 @@ cr.define('media_router_container_filter', function() {
});
});
+ // Tests for expected visible UI when the view is FILTER, and there is
+ // a non blocking issue.
+ test('filter view visibility non blocking issue', function(done) {
+ container.showSinkList_();
+
+ // Set an non-empty sink list.
+ container.allSinks = fakeSinkList;
+
+ // Set a non-blocking issue. The issue should be shown.
+ container.issue = fakeNonBlockingIssue;
+ MockInteractions.tap(container.$['sink-search-icon']);
+ setTimeout(function() {
+ checkElementsVisibleWithId(['container-header',
+ 'issue-banner',
+ 'search-results',
+ 'sink-search',
+ 'sink-list-view']);
+ done();
+ });
+ });
+
// Tests that entering filter view with text already in the search input
// will immediately use that text to filter the sinks. This tests the case
// that the text matches one sink.

Powered by Google App Engine
This is Rietveld 408576698