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

Unified Diff: chrome/test/data/webui/settings/languages_page_browsertest.js

Issue 2331593002: MD Settings: make languages test wait a whole task (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/languages_page_browsertest.js
diff --git a/chrome/test/data/webui/settings/languages_page_browsertest.js b/chrome/test/data/webui/settings/languages_page_browsertest.js
index 47f04e21e7648e81192218890bed34b756f6beb2..b563d3d57727342cf5ffe22838ab63dc69cf098c 100644
--- a/chrome/test/data/webui/settings/languages_page_browsertest.js
+++ b/chrome/test/data/webui/settings/languages_page_browsertest.js
@@ -113,8 +113,9 @@ TEST_F('SettingsLanguagesPageBrowserTest', 'MAYBE_LanguagesPage', function() {
languagesCollapse.querySelector('.list-button:last-of-type');
MockInteractions.tap(addLanguagesButton);
- // The page stamps the dialog and registers listeners asynchronously.
- Polymer.Base.async(function() {
+ // The page stamps the dialog, registers listeners, and populates the
+ // iron-list asynchronously at microtask timing, so wait for a new task.
+ setTimeout(function() {
dialog = languagesPage.$$('settings-add-languages-dialog');
assertTrue(!!dialog);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698