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

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

Issue 1963933002: [Media Router WebUI] Run afterNextRender() before tests using media-router-container. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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_sink_list_tests.js
diff --git a/chrome/test/data/webui/media_router/media_router_container_sink_list_tests.js b/chrome/test/data/webui/media_router/media_router_container_sink_list_tests.js
index b06253b52fd7efdc9d08eee96fb13e3f250f1319..c6f576630a45e6f8219527b3557fc7fe176ae6a6 100644
--- a/chrome/test/data/webui/media_router/media_router_container_sink_list_tests.js
+++ b/chrome/test/data/webui/media_router/media_router_container_sink_list_tests.js
@@ -82,8 +82,9 @@ cr.define('media_router_container_sink_list', function() {
container.castModeList = test_base.fakeCastModeList;
- // Allow for the media router container to be created and attached.
- setTimeout(done);
+ // Allow for the media router container to be created, attached, and
+ // listeners registered in an afterNextRender() call.
+ Polymer.RenderStatus.afterNextRender(this, done);
});
// Tests that text shown for each sink matches their names.

Powered by Google App Engine
This is Rietveld 408576698