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

Unified Diff: chrome/test/data/extensions/api_test/media_galleries/media_metadata/test.js

Issue 1791623002: Revert of Media Galleries Partial Deprecation: Remove image metadata & libexif. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Manual revert/rebase. Created 4 years, 9 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
Index: chrome/test/data/extensions/api_test/media_galleries/media_metadata/test.js
diff --git a/chrome/test/data/extensions/api_test/media_galleries/media_metadata/test.js b/chrome/test/data/extensions/api_test/media_galleries/media_metadata/test.js
index 96ad3610bf76df5b61c7bf6f0eb9204540a091f9..f4010e0875ccd6cdbec15ce4d7e7705b04f69351 100644
--- a/chrome/test/data/extensions/api_test/media_galleries/media_metadata/test.js
+++ b/chrome/test/data/extensions/api_test/media_galleries/media_metadata/test.js
@@ -35,6 +35,30 @@ function ImageMIMETypeOnlyTest() {
RunMetadataTest("test.jpg", {metadataType: 'mimeTypeOnly'}, verifyMetadata);
}
+function ImageTagsTest() {
+ function verifyMetadata(metadata) {
+ chrome.test.assertEq("image/jpeg", metadata.mimeType);
+ chrome.test.assertEq(5616, metadata.width);
+ chrome.test.assertEq(3744, metadata.height);
+ chrome.test.assertEq(0, metadata.rotation);
+ chrome.test.assertEq(300.0, metadata.xResolution);
+ chrome.test.assertEq(300.0, metadata.yResolution);
+ chrome.test.assertEq("Canon", metadata.cameraMake);
+ chrome.test.assertEq("Canon EOS 5D Mark II", metadata.cameraModel);
+ chrome.test.assertEq(0.01, metadata.exposureTimeSeconds);
+ chrome.test.assertFalse(metadata.flashFired);
+ chrome.test.assertEq(3.2, metadata.fNumber);
+ chrome.test.assertEq(100, metadata.focalLengthMm);
+ chrome.test.assertEq(1600, metadata.isoEquivalent);
+
+ chrome.test.assertEq(0, metadata.attachedImages.length);
+
+ chrome.test.succeed();
+ }
+
+ RunMetadataTest("test.jpg", {}, verifyMetadata);
+}
+
function InvalidMultimediaFileTest() {
function verifyMetadata(metadata) {
chrome.test.assertEq(null, metadata);
@@ -169,6 +193,7 @@ chrome.test.getConfig(function(config) {
// Should still be able to sniff MP3 MIME type without proprietary codecs.
var testsToRun = [
ImageMIMETypeOnlyTest,
+ ImageTagsTest,
InvalidMultimediaFileTest
];
« no previous file with comments | « chrome/sync_integration_tests.isolate ('k') | chrome/test/data/extensions/api_test/media_galleries/read_access/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698