diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-08-16 16:56:15 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-08-16 23:35:30 +0200 |
commit | d658e1f5e88b82dbd9c0ba48e5b742a3872b0453 (patch) | |
tree | cb9d02ad1bb505cee555b665cb1db0c5a4adb903 /sw | |
parent | 4d450704d672dddf2c555fda5ff3140d8c537d02 (diff) |
CppunitTest_sw_uiwriter: fix top/left confusion in testImageComment
This worked before as usually both are 1418, but in the case of
<https://ci.libreoffice.org/job/gerrit_windows/43226/console> the left
is a larger value (4194), while the top stays the same.
Change-Id: Ie31cb29720f6426ad9e2a28405f326e6e82febaa
Reviewed-on: https://gerrit.libreoffice.org/77597
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter2.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter2.cxx b/sw/qa/extras/uiwriter/uiwriter2.cxx index d2035512c393..e59f84a68c68 100644 --- a/sw/qa/extras/uiwriter/uiwriter2.cxx +++ b/sw/qa/extras/uiwriter/uiwriter2.cxx @@ -1626,6 +1626,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest2, testImageComment) CPPUNIT_ASSERT_GREATER(static_cast<size_t>(0), rAnchored.size()); SwAnchoredObject* pObject = rAnchored[0]; long nFrameLeft = pObject->GetObjRect().Left(); + long nFrameTop = pObject->GetObjRect().Top(); // Make sure that the anchor points to the bottom left corner of the image. // Without the accompanying fix in place, this test would have failed with: @@ -1659,7 +1660,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest2, testImageComment) OString aExpected; aExpected += OString::number(nFrameLeft); aExpected += ", "; - aExpected += OString::number(nFrameLeft); + aExpected += OString::number(nFrameTop); aExpected += ", 0, 0"; CPPUNIT_ASSERT_EQUAL(aExpected, aAnchorPos); } |