function navigateToDestinationDirectoryAndTestPaste(windowId) {
  // Navigates to destination directory.
  return navigateWithDirectoryTree(windowId, '/destination').then(function() {
    // Confirm files before paste.
    return remoteCall.waitForFiles(windowId, ITEMS_IN_DEST_DIR_BEFORE_PASTE,
        {ignoreLastModifiedTime: true});
  }).then(function() {
    // Paste
    return remoteCall.callRemoteTestUtil('fakeKeyDown', windowId,
        ['body', 'v', 'U+0056' /* v */, true /* ctrl */, false, false]);
  }).then(function() {
    // Confirm the photos directory is pasted correctly.
    return remoteCall.waitForFiles(windowId, ITEMS_IN_DEST_DIR_AFTER_PASTE,
        {ignoreLastModifiedTime: true});
  });
}
/**
 * Navigates to destination directory and test paste operation to check whether
 * the paste operation is done correctly or not. This method does NOT check
 * source entry is deleted or not for cut operation.
 */
Navigates to destination directory and test paste operation to check whether
the paste operation is done correctly or not. This method does NOT check
source entry is deleted or not for cut operation.
Navigates to destination directory and test paste operation to check whether the paste operation is done correctly or not . This method does NOT check source entry is deleted or not for cut operation .
function navigateToDestinationDirectoryAndTestPaste(windowId) {
  return navigateWithDirectoryTree(windowId, '/destination').then(function() {
    return remoteCall.waitForFiles(windowId, ITEMS_IN_DEST_DIR_BEFORE_PASTE,
        {ignoreLastModifiedTime: true});
  }).then(function() {
    return remoteCall.callRemoteTestUtil('fakeKeyDown', windowId,
        ['body', 'v', 'U+0056' , true , false, false]);
  }).then(function() {
    return remoteCall.waitForFiles(windowId, ITEMS_IN_DEST_DIR_AFTER_PASTE,
        {ignoreLastModifiedTime: true});
  });
}
function navigateToDestinationDirectoryAndTestPaste ( windowId ) { return navigateWithDirectoryTree ( windowId , '/destination' ) . then ( function ( ) { return remoteCall . waitForFiles ( windowId , ITEMS_IN_DEST_DIR_BEFORE_PASTE , { ignoreLastModifiedTime : true } ) ; } ) . then ( function ( ) { return remoteCall . callRemoteTestUtil ( 'fakeKeyDown' , windowId , [ 'body' , 'v' , 'U+0056' , true , false , false ] ) ; } ) . then ( function ( ) { return remoteCall . waitForFiles ( windowId , ITEMS_IN_DEST_DIR_AFTER_PASTE , { ignoreLastModifiedTime : true } ) ; } ) ; }
Navigates to destination directory and test paste operation to check whether
 the paste operation is done correctly or not.
Navigates to destination directory and test paste operation to check whether the paste operation is done correctly or not .
// Navigates to destination directory. // Confirm files before paste. // Paste /* v */ /* ctrl */ // Confirm the photos directory is pasted correctly.