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

Unified Diff: ui/file_manager/file_manager/foreground/js/thumbnail_loader_unittest.js

Issue 2700073003: Take the rotation information from the right source. (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/thumbnail_loader.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/thumbnail_loader_unittest.js
diff --git a/ui/file_manager/file_manager/foreground/js/thumbnail_loader_unittest.js b/ui/file_manager/file_manager/foreground/js/thumbnail_loader_unittest.js
index 509a4b069598f9292894bc80cfd8907674692c0d..e0c7f887947635df5bb8d54582070aa3927c4567 100644
--- a/ui/file_manager/file_manager/foreground/js/thumbnail_loader_unittest.js
+++ b/ui/file_manager/file_manager/foreground/js/thumbnail_loader_unittest.js
@@ -175,6 +175,8 @@ function testLoadDetachedFromExifInCavnasModeThumbnailDoesNotRotate(callback) {
load: function(url, callback, opt_option) {
// Assert that data url is passed.
assertTrue(/^data:/i.test(url));
+ // Assert that the rotation is propagated to ImageLoader.
+ assertEquals(1, opt_option.orientation.rotate90);
// ImageLoader returns rotated image.
callback({status: 'success', data: generateSampleImageDataUrl(32, 64),
width: 32, height: 64});
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/thumbnail_loader.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698