test/data/tiff.odt |binary test/httpwstest.cpp | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+)
New commits: commit c2c7982e5e49bb698342df1f9eaf7a2e50fd43eb Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Thu Jul 4 17:33:16 2019 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Thu Jul 4 17:57:01 2019 +0200 Add TIFF load testcase Fails with core.git commit ad8f4c4432e0c5c052b6f87977d1ad8663debe09 (vcl lok: pre-load graphic libraries, 2019-07-04) reverted, which fixed TIFF loading in the preload case (running in a chroot, no code available in the chroot). Change-Id: Ic46da0abcb13c4dd6fc1ce697b93e0b3062077d7 diff --git a/test/data/tiff.odt b/test/data/tiff.odt new file mode 100644 index 000000000..a984a1e6c Binary files /dev/null and b/test/data/tiff.odt differ diff --git a/test/httpwstest.cpp b/test/httpwstest.cpp index 1e322e263..3c36380fc 100644 --- a/test/httpwstest.cpp +++ b/test/httpwstest.cpp @@ -102,6 +102,7 @@ class HTTPWSTest : public CPPUNIT_NS::TestFixture CPPUNIT_TEST(testReloadWhileDisconnecting); CPPUNIT_TEST(testExcelLoad); CPPUNIT_TEST(testPaste); + CPPUNIT_TEST(testTiff); CPPUNIT_TEST(testPasteBlank); CPPUNIT_TEST(testLargePaste); CPPUNIT_TEST(testRenderingOptions); @@ -162,6 +163,7 @@ class HTTPWSTest : public CPPUNIT_NS::TestFixture void testReloadWhileDisconnecting(); void testExcelLoad(); void testPaste(); + void testTiff(); void testPasteBlank(); void testLargePaste(); void testRenderingOptions(); @@ -922,6 +924,23 @@ void HTTPWSTest::testPaste() } } +void HTTPWSTest::testTiff() +{ + const char* testname = "tiff "; + + // Load a document which has a TIFF image in it. + std::shared_ptr<LOOLWebSocket> socket = loadDocAndGetSocket("tiff.odt", _uri, testname); + + // Select the image. + sendTextFrame(socket, "uno .uno:JumpToNextFrame", testname); + sendTextFrame(socket, "rendershapeselection mimetype=image/svg+xml", testname); + + // Make sure we can get an SVG representation of the image; this failed as the TIFF import was + // broken. + const std::string content = assertResponseString(socket, "shapeselectioncontent:", testname); + CPPUNIT_ASSERT(Util::startsWith(content, "shapeselectioncontent:\n")); +} + void HTTPWSTest::testPasteBlank() { const char* testname = "pasteBlank "; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits