OLD | NEW |
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 * Prepares the photo editor. | 8 * Prepares the photo editor. |
9 * | 9 * |
10 * @param {string} testVolumeName Test volume name passed to the addEntries | 10 * @param {string} testVolumeName Test volume name passed to the addEntries |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 // Show the slide image. | 24 // Show the slide image. |
25 var slideImagePromise = gallery.waitForSlideImage( | 25 var slideImagePromise = gallery.waitForSlideImage( |
26 appId, | 26 appId, |
27 800, | 27 800, |
28 600, | 28 600, |
29 'My Desktop Background'); | 29 'My Desktop Background'); |
30 | 30 |
31 // Lauch the photo editor. | 31 // Lauch the photo editor. |
32 var photoEditorPromise = slideImagePromise.then(function() { | 32 var photoEditorPromise = slideImagePromise.then(function() { |
33 return gallery.waitAndClickElement(appId, '.button.edit'); | 33 return gallery.waitAndClickElement(appId, 'button.edit'); |
34 }); | 34 }); |
35 | 35 |
36 return photoEditorPromise.then(function() { | 36 return photoEditorPromise.then(function() { |
37 return args; | 37 return args; |
38 }); | 38 }); |
39 }); | 39 }); |
40 } | 40 } |
41 | 41 |
42 /** | 42 /** |
43 * Tests to rotate an image. | 43 * Tests to rotate an image. |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 return exposureImage('local', 'downloads'); | 223 return exposureImage('local', 'downloads'); |
224 }; | 224 }; |
225 | 225 |
226 /** | 226 /** |
227 * The exposureImage test for Google Drive. | 227 * The exposureImage test for Google Drive. |
228 * @return {Promise} Promise to be fulfilled with on success. | 228 * @return {Promise} Promise to be fulfilled with on success. |
229 */ | 229 */ |
230 testcase.exposureImageOnDrive = function() { | 230 testcase.exposureImageOnDrive = function() { |
231 return exposureImage('drive', 'drive'); | 231 return exposureImage('drive', 'drive'); |
232 }; | 232 }; |
OLD | NEW |