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 |
]; |