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

Unified Diff: ui/file_manager/image_loader/image_loader_client_unittest.js

Issue 890313002: Change ImageLoaderClient to return width and height of image. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test case. Created 5 years, 11 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/image_loader/image_loader_client.js ('k') | ui/file_manager/image_loader/request.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/image_loader/image_loader_client_unittest.js
diff --git a/ui/file_manager/image_loader/image_loader_client_unittest.js b/ui/file_manager/image_loader/image_loader_client_unittest.js
index 076d58dbf24af2a13ec1de1bc5481aac95296a6a..ce56ae29739531cc1a8dbeacea0729568a702894 100644
--- a/ui/file_manager/image_loader/image_loader_client_unittest.js
+++ b/ui/file_manager/image_loader/image_loader_client_unittest.js
@@ -29,7 +29,7 @@ function loadAndCheckCacheUsed(client, url, options) {
ImageLoaderClient.sendMessage_ = function(message, callback) {
cacheUsed = false;
if (callback)
- callback({data: 'ImageData', status: 'success'});
+ callback({data: 'ImageData', width: 100, height: 100, status: 'success'});
};
return new Promise(function(fulfill) {
« no previous file with comments | « ui/file_manager/image_loader/image_loader_client.js ('k') | ui/file_manager/image_loader/request.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698