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

Unified Diff: chrome/test/data/extensions/api_test/file_manager_browsertest/create_new_folder.js

Issue 306953004: Fix the flakiness in the CreateNewFolder test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove the debug log Created 6 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
« 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/extensions/api_test/file_manager_browsertest/create_new_folder.js
diff --git a/chrome/test/data/extensions/api_test/file_manager_browsertest/create_new_folder.js b/chrome/test/data/extensions/api_test/file_manager_browsertest/create_new_folder.js
index 5d6bfdb1ef8183a0de03dd84030f2300a03bc7f1..3d157b1daac984c5733f211ae6345c259cfc3a8c 100644
--- a/chrome/test/data/extensions/api_test/file_manager_browsertest/create_new_folder.js
+++ b/chrome/test/data/extensions/api_test/file_manager_browsertest/create_new_folder.js
@@ -84,7 +84,12 @@ function createNewFolder(windowId, path, initialEntrySet) {
expectedEntryRows,
{ignoreLastModifiedTime: true});
}).then(function() {
- // Ensure that only the created directory is selected.
+ // Wait until the new created folder is selected.
+ return waitForElement(
+ windowId,
+ 'div.detail-table > list > li[selected]#' + newFoloderListItemId);
+ }).then(function() {
+ // Ensure that the created directory is the only one selected directory.
return callRemoteTestUtil(
'queryAllElements',
windowId,
« 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