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

Side by Side Diff: ui/file_manager/integration_tests/gallery/slide_mode.js

Issue 1158923004: Add support to mime types in Files app UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests. Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 'use strict'; 5 'use strict';
6 6
7 /** 7 /**
8 * Runs a test to traverse images in the slide mode. 8 * Runs a test to traverse images in the slide mode.
9 * 9 *
10 * @param {string} testVolumeName Test volume name passed to the addEntries 10 * @param {string} testVolumeName Test volume name passed to the addEntries
11 * function. Either 'drive' or 'local'. 11 * function. Either 'drive' or 'local'.
12 * @param {VolumeManagerCommon.VolumeType} volumeType Volume type. 12 * @param {VolumeManagerCommon.VolumeType} volumeType Volume type.
13 * @return {Promise} Promise to be fulfilled with on success. 13 * @return {Promise} Promise to be fulfilled with on success.
14 */ 14 */
15 function traverseSlideImages(testVolumeName, volumeType) { 15 function traverseSlideImages(testVolumeName, volumeType) {
16 var testEntries = [ENTRIES.desktop, ENTRIES.image2, ENTRIES.image3]; 16 var testEntries = [ENTRIES.desktop, ENTRIES.image3];
17 var launchedPromise = launch( 17 var launchedPromise = launch(
18 testVolumeName, volumeType, testEntries, testEntries.slice(0, 1)); 18 testVolumeName, volumeType, testEntries, testEntries.slice(0, 1));
19 var appId; 19 var appId;
20 return launchedPromise.then(function(args) { 20 return launchedPromise.then(function(args) {
21 appId = args.appId; 21 appId = args.appId;
22 return gallery.waitForElement(appId, '.gallery[mode="slide"]'); 22 return gallery.waitForElement(appId, '.gallery[mode="slide"]');
23 }).then(function() { 23 }).then(function() {
24 return gallery.waitForSlideImage(appId, 800, 600, 'My Desktop Background'); 24 return gallery.waitForSlideImage(appId, 800, 600, 'My Desktop Background');
25 }).then(function() { 25 }).then(function() {
26 return gallery.waitAndClickElement(appId, '.arrow.right'); 26 return gallery.waitAndClickElement(appId, '.arrow.right');
27 }).then(function() { 27 }).then(function() {
28 return gallery.waitForSlideImage(appId, 1024, 768, 'image2');
29 }).then(function() {
30 return gallery.waitAndClickElement(appId, '.arrow.right');
31 }).then(function() {
32 return gallery.waitForSlideImage(appId, 640, 480, 'image3'); 28 return gallery.waitForSlideImage(appId, 640, 480, 'image3');
33 }).then(function() { 29 }).then(function() {
34 return gallery.waitAndClickElement(appId, '.arrow.right'); 30 return gallery.waitAndClickElement(appId, '.arrow.right');
35 }).then(function() { 31 }).then(function() {
36 return gallery.waitForSlideImage(appId, 800, 600, 'My Desktop Background'); 32 return gallery.waitForSlideImage(appId, 800, 600, 'My Desktop Background');
37 }); 33 });
38 } 34 }
39 35
40 /** 36 /**
41 * Runs a test to rename an image. 37 * Runs a test to rename an image.
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 return deleteImage('local', 'downloads'); 133 return deleteImage('local', 'downloads');
138 }; 134 };
139 135
140 /** 136 /**
141 * The deleteImage test for Google Drive. 137 * The deleteImage test for Google Drive.
142 * @return {Promise} Promise to be fulfilled with on success. 138 * @return {Promise} Promise to be fulfilled with on success.
143 */ 139 */
144 testcase.deleteImageOnDrive = function() { 140 testcase.deleteImageOnDrive = function() {
145 return deleteImage('drive', 'drive'); 141 return deleteImage('drive', 'drive');
146 }; 142 };
OLDNEW
« no previous file with comments | « ui/file_manager/integration_tests/gallery/open_image_files.js ('k') | ui/file_manager/integration_tests/test_util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698