Kaydet (Commit) 5bc759b3 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

tdf#94386: Small stylistic change based on gerrit#19371 comments.

Change-Id: If0e97269043addb7a1659e34c0b286d7ac32428a
üst c3acead3
......@@ -609,7 +609,7 @@ DECLARE_WW8EXPORT_TEST(testTdf94386, "tdf94386.odt")
OUString firstPageStyleName = getProperty<OUString>(xCursor, "PageStyleName");
xCursor->jumpToLastPage();
OUString lastPageStyleName = getProperty<OUString>(xCursor, "PageStyleName");
CPPUNIT_ASSERT_EQUAL(false, firstPageStyleName.equals(lastPageStyleName));
CPPUNIT_ASSERT(firstPageStyleName != lastPageStyleName);
uno::Reference<beans::XPropertySet> xFirstPropertySet(getStyles("PageStyles")->getByName(firstPageStyleName), uno::UNO_QUERY);
awt::Size fSize;
......@@ -618,8 +618,8 @@ DECLARE_WW8EXPORT_TEST(testTdf94386, "tdf94386.odt")
uno::Reference<beans::XPropertySet> xNextPropertySet(getStyles("PageStyles")->getByName(lastPageStyleName), uno::UNO_QUERY);
awt::Size lSize;
xNextPropertySet->getPropertyValue("Size") >>= lSize;
bool isEqual = (fSize.Width == lSize.Width) || (fSize.Height == lSize.Height);
CPPUNIT_ASSERT_EQUAL(false, isEqual);
CPPUNIT_ASSERT((fSize.Width != lSize.Width) && (fSize.Height != lSize.Height));
}
CPPUNIT_PLUGIN_IMPLEMENT();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment