function openMultipleImagesAndChangeToSlideMode(testVolumeName, volumeType) {
  var testEntries = [ENTRIES.desktop, ENTRIES.image3];
  var launchedPromise = launch(testVolumeName, volumeType, testEntries);
  return launchedPromise.then(function(args) {
    var appId = args.appId;
    return confirmTwoImagesAreLoadedInThumbnailMode(appId).then(function() {
      // Press Enter key and mode should be changed to slide mode.
      return gallery.callRemoteTestUtil(
          'fakeKeyDown', appId,
          [null /* active element */, 'Enter', 'Enter', false, false, false]);
    }).then(function() {
      // Wait until it changes to slide mode.
      return gallery.waitForElement(appId, '.gallery[mode="slide"]');
    });
  });
}
/**
 * Runs a test to open multiple images and change to slide mode with keyboard.
 *
 * @param {string} testVolumeName Test volume name passed to the addEntries
 *     function. Either 'drive' or 'local'.
 * @param {VolumeManagerCommon.VolumeType} volumeType Volume type.
 * @return {Promise} Promise to be fulfilled with on success.
 */
Runs a test to open multiple images and change to slide mode with keyboard.
@param {string} testVolumeName Test volume name passed to the addEntries
function. Either 'drive' or 'local'.
Runs a test to open multiple images and change to slide mode with keyboard . @param { string } testVolumeName Test volume name passed to the addEntries function . Either ' drive ' or ' local ' .
function openMultipleImagesAndChangeToSlideMode(testVolumeName, volumeType) {
  var testEntries = [ENTRIES.desktop, ENTRIES.image3];
  var launchedPromise = launch(testVolumeName, volumeType, testEntries);
  return launchedPromise.then(function(args) {
    var appId = args.appId;
    return confirmTwoImagesAreLoadedInThumbnailMode(appId).then(function() {
      return gallery.callRemoteTestUtil(
          'fakeKeyDown', appId,
          [null , 'Enter', 'Enter', false, false, false]);
    }).then(function() {
      return gallery.waitForElement(appId, '.gallery[mode="slide"]');
    });
  });
}
function openMultipleImagesAndChangeToSlideMode ( testVolumeName , volumeType ) { var testEntries = [ ENTRIES . desktop , ENTRIES . image3 ] ; var launchedPromise = launch ( testVolumeName , volumeType , testEntries ) ; return launchedPromise . then ( function ( args ) { var appId = args . appId ; return confirmTwoImagesAreLoadedInThumbnailMode ( appId ) . then ( function ( ) { return gallery . callRemoteTestUtil ( 'fakeKeyDown' , appId , [ null , 'Enter' , 'Enter' , false , false , false ] ) ; } ) . then ( function ( ) { return gallery . waitForElement ( appId , '.gallery[mode="slide"]' ) ; } ) ; } ) ; }
Runs a test to open multiple images and change to slide mode with keyboard.
Runs a test to open multiple images and change to slide mode with keyboard .
// Press Enter key and mode should be changed to slide mode. /* active element */ // Wait until it changes to slide mode.