Add an unittest for gallery/js/image_editor/image_encoder.js.
commit9ee81b92f116162ae918e3e18eec68c38b689166
authoryawano <yawano@chromium.org>
Thu, 18 Dec 2014 10:57:45 +0000 (18 02:57 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 18 Dec 2014 10:58:07 +0000 (18 10:58 +0000)
tree2da2b4cb1d000ba1458fd086bdabad1d01198ea5
parent167503af08f5078ede989910c858bd676e6834fd
Add an unittest for gallery/js/image_editor/image_encoder.js.

This CL also changes ImageEncoder to throw an exception when a metadata is broken (i.e. missing mimeType field).

BUG=438079
TEST=out/Release/browser_tests --gtest_filter=GalleryJsTest.ImageEncoderTest:GalleryJsTest.ExifEncoderTest

Review URL: https://codereview.chromium.org/809983002

Cr-Commit-Position: refs/heads/master@{#308983}
chrome/browser/chromeos/file_manager/gallery_jstest.cc
ui/file_manager/gallery/js/gallery_item.js
ui/file_manager/gallery/js/image_editor/exif_encoder_unittest.html
ui/file_manager/gallery/js/image_editor/exif_encoder_unittest.js
ui/file_manager/gallery/js/image_editor/image_encoder.js
ui/file_manager/gallery/js/image_editor/image_encoder_unittest.html [new file with mode: 0644]
ui/file_manager/gallery/js/image_editor/image_encoder_unittest.js [new file with mode: 0644]
ui/file_manager/gallery/js/image_editor/test_util.js [new file with mode: 0644]
ui/file_manager/integration_tests/test_util.js