diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-05 12:31:50 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-08 17:30:28 +0100 |
commit | 4eb1bb9ab40df27ceb1b3c386d4f70d3bca00d10 (patch) | |
tree | aedc9c181abb58d68d9671ccc61c3c9f28bd16a3 | |
parent | bd509c57fe66c69901ed24a46ae835f149d8dcfd (diff) |
CppunitTest_sw_uiwriter: tolerate lower than 276 in testTdf96536()
Seen on an OS X tinderbox from time to time, but not always.
Change-Id: Ie6796de5095a6d3b583fa8494444f4d662db8b12
(cherry picked from commit af47b54d49355a003deda722b5d0112a7b746485)
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index 59ffbf218276..47924fe9d9ae 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -1212,8 +1212,9 @@ void SwUiWriterTest::testTdf96536() calcLayout(); // This was 552, page did not shrink after deleting the second paragraph. - // 276 is 12pt font size + default line spacing (15%). - CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(276), parseDump("/root/infos/bounds", "height").toInt32()); + // Expected 276, which is 12pt font size + default line spacing (15%), but + // tolerate some difference to that. + CPPUNIT_ASSERT(parseDump("/root/infos/bounds", "height").toInt32() <= 276); } CPPUNIT_TEST_SUITE_REGISTRATION(SwUiWriterTest); |