| 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 0fa3e926c3c9eca23bce30527014ee0b4b45c6ba..8da904f0e8fafde17195e1f7b0328eb5aa206d29 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>}
|
| */
|
| @@ -88,6 +94,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;
|
| @@ -234,6 +241,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.
|
|
|