| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 return exposureImage('local', 'downloads'); | 220 return exposureImage('local', 'downloads'); |
| 221 }; | 221 }; |
| 222 | 222 |
| 223 /** | 223 /** |
| 224 * The exposureImage test for Google Drive. | 224 * The exposureImage test for Google Drive. |
| 225 * @return {Promise} Promise to be fulfilled with on success. | 225 * @return {Promise} Promise to be fulfilled with on success. |
| 226 */ | 226 */ |
| 227 testcase.exposureImageOnDrive = function() { | 227 testcase.exposureImageOnDrive = function() { |
| 228 return exposureImage('drive', 'drive'); | 228 return exposureImage('drive', 'drive'); |
| 229 }; | 229 }; |
| OLD | NEW |