[Libreoffice-commits] core.git: sw/qa
Matúš Kukan
matus.kukan at collabora.com
Fri Sep 19 01:32:05 PDT 2014
sw/qa/extras/htmlimport/htmlimport.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 2f270990f4ea53c941af0f1b8b1d06e18fc22606
Author: Matúš Kukan <matus.kukan at collabora.com>
Date: Fri Sep 19 10:23:17 2014 +0200
Improve test for inlined html image
Change-Id: I7063a50987b018b9a00bc542ae5ed1b963b17dd8
diff --git a/sw/qa/extras/htmlimport/htmlimport.cxx b/sw/qa/extras/htmlimport/htmlimport.cxx
index 03701c4..592aa53 100644
--- a/sw/qa/extras/htmlimport/htmlimport.cxx
+++ b/sw/qa/extras/htmlimport/htmlimport.cxx
@@ -57,6 +57,10 @@ DECLARE_HTMLIMPORT_TEST(testInlinedImage, "inlined_image.html")
CPPUNIT_ASSERT(xGraphic.is());
CPPUNIT_ASSERT(xGraphic->getType() != graphic::GraphicType::EMPTY);
+ OUString sGraphicURL = getProperty< OUString >(xShape, "GraphicURL");
+ // Before it was "data:image/png;base64,<data>"
+ CPPUNIT_ASSERT(sGraphicURL.startsWith("vnd.sun.star.GraphicObject:"));
+
for (int n = 0; ; n++)
{
SwNode* pNode = pDoc->GetNodes()[ n ];
More information about the Libreoffice-commits
mailing list