diff options
author | David Tardon <dtardon@redhat.com> | 2015-07-25 15:11:19 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-07-25 15:11:19 +0200 |
commit | 75a02c586f6ec49d4316f79004834250ef42b0e0 (patch) | |
tree | 5a8849e03b24685f4943d80c1a3eb12e87d508ac /src | |
parent | 3b6d0b1c7c68defa667af9c073f35e5e702d9513 (diff) |
fix test
The previous version only worked with libxml2 < 2.9.2, because of a bug
in handling nested elements of the same name.
Change-Id: I1368cedf5845895154806d4ecf427bfbed19165f
Diffstat (limited to 'src')
-rw-r--r-- | src/test/importtest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/importtest.cpp b/src/test/importtest.cpp index 8554309..0296380 100644 --- a/src/test/importtest.cpp +++ b/src/test/importtest.cpp @@ -272,9 +272,9 @@ void ImportTest::testVsdxImportBgColorFromTheme() void ImportTest::testVsdxCharBgColor() { m_doc = parse("bgcolor.vsdx", m_buffer); - assertXPathNoAttribute(m_doc, "/document/page/layer/textObject/paragraph/span", "background-color"); - assertXPath(m_doc, "/document/page/layer/layer[2]/textObject/paragraph/span", "background-color", "#9dbb61"); - assertXPath(m_doc, "/document/page/layer/layer[2]/layer[2]/textObject/paragraph/span", "background-color", "#9dbb61"); + 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"); } CPPUNIT_TEST_SUITE_REGISTRATION(ImportTest); |