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

Unified Diff: chrome/test/data/webui/media_router/media_router_container_search_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_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 9d21687e4115ae3bf7a6a8868faf180d5f511dd2..5b5f72a999479802d0b412396397787427333744 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
@@ -154,7 +154,9 @@ cr.define('media_router_container_search', function() {
pseudoSink.iconType, undefined, pseudoSink.castModes);
fakeSinkListWithPseudoSink = fakeSinkList.concat([pseudoSink]);
- setTimeout(done);
+ // Allow for the media router container to be created, attached, and
+ // listeners registered in an afterNextRender() call.
+ Polymer.RenderStatus.afterNextRender(this, done);
});
test('pseudo sink hidden without filter input', function(done) {

Powered by Google App Engine
This is Rietveld 408576698