function renameDirectoryFromDirectoryTreeAndConfirmAlertDialog(newName) {
  var windowId;
  return setupForDirectoryTreeContextMenuTest().then(function(id) {
    windowId = id;
    return navigateWithDirectoryTree(windowId, '/photos');
  }).then(function() {
    return renamePhotosDirectoryTo(windowId, newName, false);
  }).then(function() {
    // Confirm that a dialog is shown.
    return remoteCall.waitForElement(windowId, '.cr-dialog-container.shown');
  });
}
/**
 * Renames directory and confirms that an alert dialog is shown.
 */
Renames directory and confirms that an alert dialog is shown.
Renames directory and confirms that an alert dialog is shown .
function renameDirectoryFromDirectoryTreeAndConfirmAlertDialog(newName) {
  var windowId;
  return setupForDirectoryTreeContextMenuTest().then(function(id) {
    windowId = id;
    return navigateWithDirectoryTree(windowId, '/photos');
  }).then(function() {
    return renamePhotosDirectoryTo(windowId, newName, false);
  }).then(function() {
    return remoteCall.waitForElement(windowId, '.cr-dialog-container.shown');
  });
}
function renameDirectoryFromDirectoryTreeAndConfirmAlertDialog ( newName ) { var windowId ; return setupForDirectoryTreeContextMenuTest ( ) . then ( function ( id ) { windowId = id ; return navigateWithDirectoryTree ( windowId , '/photos' ) ; } ) . then ( function ( ) { return renamePhotosDirectoryTo ( windowId , newName , false ) ; } ) . then ( function ( ) { return remoteCall . waitForElement ( windowId , '.cr-dialog-container.shown' ) ; } ) ; }
Renames directory and confirms that an alert dialog is shown.
Renames directory and confirms that an alert dialog is shown .
// Confirm that a dialog is shown.