[Libreoffice-commits] libvisio.git: src/test
David Tardon
dtardon at redhat.com
Tue Dec 22 05:21:31 PST 2015
src/test/importtest.cpp | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
New commits:
commit 72feb340c3eaecd73620388a6528e40797bada32
Author: David Tardon <dtardon at redhat.com>
Date: Tue Dec 22 14:21:00 2015 +0100
fix test: there are 2 paragraphs now
Change-Id: I3413173c5dc9342fde246b767373975afbd458ab
diff --git a/src/test/importtest.cpp b/src/test/importtest.cpp
index d35eaa6..e05b3c1 100644
--- a/src/test/importtest.cpp
+++ b/src/test/importtest.cpp
@@ -278,9 +278,12 @@ void ImportTest::testVsdxImportBgColorFromTheme()
void ImportTest::testVsdxCharBgColor()
{
m_doc = parse("bgcolor.vsdx", m_buffer);
- assertXPathNoAttribute(m_doc, "/document/page/layer[1]/textObject/paragraph/span", "background-color");
- assertXPath(m_doc, "/document/page/layer[2]/textObject/paragraph/span", "background-color", "#9dbb61");
- assertXPath(m_doc, "/document/page/layer[3]/textObject/paragraph/span", "background-color", "#9dbb61");
+ assertXPathNoAttribute(m_doc, "/document/page/layer[1]/textObject/paragraph[1]/span", "background-color");
+ assertXPathNoAttribute(m_doc, "/document/page/layer[1]/textObject/paragraph[2]/span", "background-color");
+ assertXPath(m_doc, "/document/page/layer[2]/textObject/paragraph[1]/span", "background-color", "#9dbb61");
+ assertXPath(m_doc, "/document/page/layer[2]/textObject/paragraph[2]/span", "background-color", "#9dbb61");
+ assertXPath(m_doc, "/document/page/layer[3]/textObject/paragraph[1]/span", "background-color", "#9dbb61");
+ assertXPath(m_doc, "/document/page/layer[3]/textObject/paragraph[2]/span", "background-color", "#9dbb61");
}
CPPUNIT_TEST_SUITE_REGISTRATION(ImportTest);
More information about the Libreoffice-commits
mailing list