| Index: ui/file_manager/image_loader/image_loader_unittest.js
|
| diff --git a/ui/file_manager/image_loader/image_loader_unittest.js b/ui/file_manager/image_loader/image_loader_unittest.js
|
| index f6cf64ad48363d11837dfe126b2ed16956d1dcd2..a66776fa31b4e63cc53b8e7f7137605dd20d8b13 100644
|
| --- a/ui/file_manager/image_loader/image_loader_unittest.js
|
| +++ b/ui/file_manager/image_loader/image_loader_unittest.js
|
| @@ -16,7 +16,7 @@ function testNormalImage() {
|
| maxHeight: 100,
|
| orientation: ImageOrientation.fromDriveOrientation(0)
|
| };
|
| - var result = ImageLoader.calculateCopyParameters(source, options);
|
| + var result = ImageLoaderUtil.calculateCopyParameters(source, options);
|
| assertEquals(0, result.source.x);
|
| assertEquals(0, result.source.y);
|
| assertEquals(200, result.source.width);
|
| @@ -43,7 +43,7 @@ function testRotatedImage() {
|
| maxHeight: 100,
|
| orientation: ImageOrientation.fromDriveOrientation(1)
|
| };
|
| - var result = ImageLoader.calculateCopyParameters(source, options);
|
| + var result = ImageLoaderUtil.calculateCopyParameters(source, options);
|
| assertEquals(0, result.source.x);
|
| assertEquals(0, result.source.y);
|
| assertEquals(50, result.source.width);
|
| @@ -71,7 +71,7 @@ function testCroppedImage() {
|
| crop: true,
|
| orientation: ImageOrientation.fromDriveOrientation(0)
|
| };
|
| - var result = ImageLoader.calculateCopyParameters(source, options);
|
| + var result = ImageLoaderUtil.calculateCopyParameters(source, options);
|
| assertEquals(350, result.source.x);
|
| assertEquals(0, result.source.y);
|
| assertEquals(100, result.source.width);
|
| @@ -99,7 +99,7 @@ function testCroppedImageWithResize() {
|
| crop: true,
|
| orientation: ImageOrientation.fromDriveOrientation(0)
|
| };
|
| - var result = ImageLoader.calculateCopyParameters(source, options);
|
| + var result = ImageLoaderUtil.calculateCopyParameters(source, options);
|
| assertEquals(87, result.source.x);
|
| assertEquals(0, result.source.y);
|
| assertEquals(25, result.source.width);
|
| @@ -127,7 +127,7 @@ function testCroppedTinyImage() {
|
| crop: true,
|
| orientation: ImageOrientation.fromDriveOrientation(0)
|
| };
|
| - var result = ImageLoader.calculateCopyParameters(source, options);
|
| + var result = ImageLoaderUtil.calculateCopyParameters(source, options);
|
| assertEquals(5, result.source.x);
|
| assertEquals(0, result.source.y);
|
| assertEquals(10, result.source.width);
|
| @@ -155,7 +155,7 @@ function testCroppedRotatedImage() {
|
| crop: true,
|
| orientation: ImageOrientation.fromDriveOrientation(1)
|
| };
|
| - var result = ImageLoader.calculateCopyParameters(source, options);
|
| + var result = ImageLoaderUtil.calculateCopyParameters(source, options);
|
| assertEquals(0, result.source.x);
|
| assertEquals(150, result.source.y);
|
| assertEquals(100, result.source.width);
|
|
|