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

Unified Diff: chrome/test/data/webui/md_user_manager/user_manager_pages_tests.js

Issue 2036763003: MD User Manager: Fixes flaky tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initial Created 4 years, 6 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 | « chrome/test/data/webui/md_user_manager/user_manager_browsertest.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/md_user_manager/user_manager_pages_tests.js
diff --git a/chrome/test/data/webui/md_user_manager/user_manager_pages_tests.js b/chrome/test/data/webui/md_user_manager/user_manager_pages_tests.js
index 9a32094b8004bb2ce5742389f0cc397f7fb2a2a9..19a809e21baddf65297864283747eb825ac6a265 100644
--- a/chrome/test/data/webui/md_user_manager/user_manager_pages_tests.js
+++ b/chrome/test/data/webui/md_user_manager/user_manager_pages_tests.js
@@ -9,12 +9,15 @@ cr.define('user_manager.user_manager_pages_tests', function() {
var pagesElement = null;
setup(function() {
- PolymerTest.clearBody();
pagesElement = document.createElement('user-manager-pages');
document.body.appendChild(pagesElement);
});
- teardown(function() { pagesElement.remove(); });
+ teardown(function(done) {
+ pagesElement.remove();
+ // Allow asynchronous tasks to finish.
+ setTimeout(done);
+ });
test('User Pods page is the default visible page', function() {
assertTrue(
« no previous file with comments | « chrome/test/data/webui/md_user_manager/user_manager_browsertest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698