summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-12-22 14:21:00 +0100
committerDavid Tardon <dtardon@redhat.com>2015-12-22 14:21:00 +0100
commit72feb340c3eaecd73620388a6528e40797bada32 (patch)
tree3299da4522c3d6a19fa07401b097144657f00a36
parent1dfe3f4841700eddcbc4960f1a7d0a20916f7a36 (diff)
fix test: there are 2 paragraphs now
Change-Id: I3413173c5dc9342fde246b767373975afbd458ab
-rw-r--r--src/test/importtest.cpp9
1 files changed, 6 insertions, 3 deletions
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);