[Libreoffice-commits] core.git: Branch 'feature/sc-notes-storage' - sc/qa

Markus Mohrhard markus.mohrhard at googlemail.com
Fri Sep 20 09:00:35 PDT 2013


 sc/qa/unit/ucalc.cxx |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit 456522077e664b688a4575df6fb0a278b2bb372f
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Fri Sep 20 17:50:43 2013 +0200

    fix unit test
    
    Change-Id: If38944ee8dd8c4ec539d75342e62e891eba1fa8f

diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 69f44c6..5980820 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -3029,11 +3029,10 @@ void Test::testCopyPasteTranspose()
 
     ScRange aDestRange = ScRange(3,1,1,3,3,1);//target: Sheet2.D2:D4
     ScMarkData aMark;
-    aMark.SetMarkArea(aSrcRange);
+    aMark.SetMarkArea(aDestRange);
     m_pDoc->CopyFromClip(aDestRange, aMark, IDF_ALL, NULL, pTransposedClip);
 
     //check values after transposed copy/paste
-/*
     OUString aString = m_pDoc->GetString(3, 3, 1);
     CPPUNIT_ASSERT_MESSAGE("Cell Sheet3.D4 should contain: test", aString.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("test")));
 
@@ -3042,14 +3041,14 @@ void Test::testCopyPasteTranspose()
     CPPUNIT_ASSERT_MESSAGE("There should be a note on Sheet2.D3", m_pDoc->HasNote(ScAddress(3, 2, 1)));
     CPPUNIT_ASSERT_MESSAGE("There should be a note on Sheet2.D4", m_pDoc->HasNote(ScAddress(3, 3, 1)));
 
-
+    /*
     double fValue = m_pDoc->GetValue(ScAddress(3,1,1));
     m_pDoc->GetFormula(3,1,1, aString);
     ASSERT_DOUBLES_EQUAL_MESSAGE("transposed copied formula should return 2", fValue, 2);
  //   CPPUNIT_ASSERT_MESSAGE("transposed formula string was not copied correctly", aString == aFormulaString);
     fValue = m_pDoc->GetValue(ScAddress(3,2,1));
     CPPUNIT_ASSERT_MESSAGE("transposed copied value should be 1", fValue == 1);
-*/
+    */
     m_pDoc->DeleteTab(1);
     m_pDoc->DeleteTab(0);
 


More information about the Libreoffice-commits mailing list