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

Unified Diff: ui/file_manager/gallery/js/gallery_item_unittest.js

Issue 936143003: Start to use new metadata item in ImageEncoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test Created 5 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/gallery/js/gallery_item.js ('k') | ui/file_manager/gallery/js/image_editor/exif_encoder.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/gallery/js/gallery_item_unittest.js
diff --git a/ui/file_manager/gallery/js/gallery_item_unittest.js b/ui/file_manager/gallery/js/gallery_item_unittest.js
index e3c545b28593bb85fecba06b6eb8620a5e1956fc..8a7b25dfb98edec50881d4cea75dc98630978397 100644
--- a/ui/file_manager/gallery/js/gallery_item_unittest.js
+++ b/ui/file_manager/gallery/js/gallery_item_unittest.js
@@ -63,6 +63,13 @@ function testSaveToFile(callback) {
{isReadOnly: false},
{name: 'oldMetadata'},
metadataCache,
+ // Mock of FileSystemMetadata.
+ {
+ get: function() {
+ return Promise.resolve([{}]);
+ },
+ notifyEntriesChanged: function() {}
+ },
/* original */ true);
assertEquals('oldMetadata', item.getMetadata().name);
assertFalse(fetchedMediaCleared);
« no previous file with comments | « ui/file_manager/gallery/js/gallery_item.js ('k') | ui/file_manager/gallery/js/image_editor/exif_encoder.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698