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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('user_manager.user_manager_pages_tests', function() { 5 cr.define('user_manager.user_manager_pages_tests', function() {
6 function registerTests() { 6 function registerTests() {
7 suite('UserManagerPagesTests', function() { 7 suite('UserManagerPagesTests', function() {
8 /** @type {?UserManagerPagesElement} */ 8 /** @type {?UserManagerPagesElement} */
9 var pagesElement = null; 9 var pagesElement = null;
10 10
11 setup(function() { 11 setup(function() {
12 PolymerTest.clearBody();
13 pagesElement = document.createElement('user-manager-pages'); 12 pagesElement = document.createElement('user-manager-pages');
14 document.body.appendChild(pagesElement); 13 document.body.appendChild(pagesElement);
15 }); 14 });
16 15
17 teardown(function() { pagesElement.remove(); }); 16 teardown(function(done) {
17 pagesElement.remove();
18 // Allow asynchronous tasks to finish.
19 setTimeout(done);
20 });
18 21
19 test('User Pods page is the default visible page', function() { 22 test('User Pods page is the default visible page', function() {
20 assertTrue( 23 assertTrue(
21 pagesElement.isPageVisible_(pagesElement.selectedPage_, 24 pagesElement.isPageVisible_(pagesElement.selectedPage_,
22 'user-pods-page')); 25 'user-pods-page'));
23 assertFalse( 26 assertFalse(
24 pagesElement.isPageVisible_(pagesElement.selectedPage_, 27 pagesElement.isPageVisible_(pagesElement.selectedPage_,
25 'create-user-page')); 28 'create-user-page'));
26 }); 29 });
27 30
(...skipping 25 matching lines...) Expand all
53 createProfileElement = pagesElement.$$('create-profile'); 56 createProfileElement = pagesElement.$$('create-profile');
54 assertTrue(!createProfileElement); 57 assertTrue(!createProfileElement);
55 }); 58 });
56 }); 59 });
57 } 60 }
58 61
59 return { 62 return {
60 registerTests: registerTests, 63 registerTests: registerTests,
61 }; 64 };
62 }); 65 });
OLDNEW
« 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