diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-02-18 18:36:45 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-02-18 20:16:07 +0100 |
commit | 0295c8a34e39326414c1b98cf4da905802f061b0 (patch) | |
tree | 0595896589edc155fae7775fe586403c59842379 /sw/qa/core | |
parent | 24eae2b75c201292990122e69954072f36b6f218 (diff) |
sw: let SwTxtNode::GetTxt() return OUString
Change-Id: I36e777b2f623429773277e092284f7d2ba61e6ef
Diffstat (limited to 'sw/qa/core')
-rw-r--r-- | sw/qa/core/uwriter.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx index 5f94c84ba2dd..7667f258b3d9 100644 --- a/sw/qa/core/uwriter.cxx +++ b/sw/qa/core/uwriter.cxx @@ -251,7 +251,7 @@ void SwDocTest::testModelToViewHelper() nPos = aPaM.GetPoint()->nContent.GetIndex(); pTxtNode->InsertItem(aFtn, nPos, nPos); m_pDoc->InsertString(aPaM, rtl::OUString(" DDDDD")); - CPPUNIT_ASSERT(pTxtNode->GetTxt().Len() == (4*5) + 5 + 2); + CPPUNIT_ASSERT_EQUAL(pTxtNode->GetTxt().getLength(), (4*5) + 5 + 2); //set start of selection to first B aPaM.GetPoint()->nContent.Assign(aPaM.GetCntntNode(), 6); @@ -533,7 +533,8 @@ void SwDocTest::testSwScanner() aPaM.SetMark(); //set start of selection to current pos aPaM.GetPoint()->nContent.Assign(aPaM.GetCntntNode(), 5); //set end of selection to fifth char of current node m_pDoc->DeleteAndJoin(aPaM); //redline-aware deletion api - CPPUNIT_ASSERT_MESSAGE("real underlying text should be the same", pTxtNode->GetTxt().EqualsAscii(aString)); + //"real underlying text should be the same" + CPPUNIT_ASSERT_EQUAL(pTxtNode->GetTxt(), OUString(aString)); aDocStat.Reset(); pTxtNode->SetWordCountDirty(true); |