summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-02-27 10:44:20 +0100
committerMiklos Vajna <vmiklos@suse.cz>2013-02-27 10:45:55 +0100
commit45532cef80be1c658484282ec41031d02b91a218 (patch)
tree37585aa08e0bc6f06efe03179dc24b37651fabf3 /sw
parent005ad68b15152431c691fe220b0547424f2b9d88 (diff)
ww8export test: fail if control shape not found
This check was added due to random failures (where it failed if the shape was completely missing, while the test wanted to check a property of the shape), but it shoult no longer be necessary since 2ed931303b10386153a1337fa15b225aabd40cb4 Change-Id: Ia5665b4f292cee09eab52b76e53c34a44d545896
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/ww8export/ww8export.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/sw/qa/extras/ww8export/ww8export.cxx b/sw/qa/extras/ww8export/ww8export.cxx
index 650fbbff0212..7082bf09d293 100644
--- a/sw/qa/extras/ww8export/ww8export.cxx
+++ b/sw/qa/extras/ww8export/ww8export.cxx
@@ -102,13 +102,9 @@ void Test::testFdo45724()
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XIndexAccess> xDraws(xDrawPageSupplier->getDrawPage(), uno::UNO_QUERY);
uno::Reference<drawing::XControlShape> xControlShape(xDraws->getByIndex(0), uno::UNO_QUERY);
- // This should not happen (the shape was there before the fix as well), but let's avoid a segfault in some random cases...
- if (xControlShape.is())
- {
- uno::Reference<form::validation::XValidatableFormComponent> xComponent(xControlShape->getControl(), uno::UNO_QUERY);
- CPPUNIT_ASSERT_EQUAL(COL_WHITE, getProperty<sal_uInt32>(xComponent, "BackgroundColor"));
- CPPUNIT_ASSERT_EQUAL(OUString("xxx"), xComponent->getCurrentValue().get<OUString>());
- }
+ uno::Reference<form::validation::XValidatableFormComponent> xComponent(xControlShape->getControl(), uno::UNO_QUERY);
+ CPPUNIT_ASSERT_EQUAL(COL_WHITE, getProperty<sal_uInt32>(xComponent, "BackgroundColor"));
+ CPPUNIT_ASSERT_EQUAL(OUString("xxx"), xComponent->getCurrentValue().get<OUString>());
}
void Test::testFdo46020()