| 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.
|
|
|