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

Laurent Godard lgodard.libre at laposte.net
Mon Oct 14 07:50:31 PDT 2013


 sc/qa/unit/ucalc.cxx |   86 ---------------------------------------------------
 sc/qa/unit/ucalc.hxx |    2 -
 2 files changed, 88 deletions(-)

New commits:
commit 0ee6f9d57b27bd366cac629933e1dfe2a28d4820
Author: Laurent Godard <lgodard.libre at laposte.net>
Date:   Mon Oct 14 16:49:18 2013 +0200

    remove unsused test
    
    Change-Id: I9adb3c1d6ced23523c35658df7f7102b66c81fe8

diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 500894c..72f1492 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -4184,92 +4184,6 @@ void Test::testAerasWithNotes()
     pDoc->DeleteTab(0);
 
 }
-/* TODO : notes - these are private methods :(
-
-void Test::testSwapCells()
-{
-    ScDocument* pDoc = getDocShell().GetDocument();
-    OUString aSheet1("Sheet1");
-    pDoc->InsertTab(0, aSheet1);
-
-    OUString aString;
-
-    OUString aStringA1("originally A1");
-    OUString aStringA2("originally A2");
-    OUString aStringA3("originally A3");
-    OUString aStringB1("originally B1");
-    OUString aStringB2("originally B2");
-    OUString aStringB3("originally B3");
-
-
-    m_pDoc->SetString(0, 0, 0, aStringA1);
-    m_pDoc->SetString(0, 1, 0, aStringA2);
-    m_pDoc->SetString(0, 2, 0, aStringA3);
-
-    m_pDoc->SetString(1, 0, 0, aStringB1);
-    m_pDoc->SetString(1, 1, 0, aStringB2);
-    m_pDoc->SetString(1, 2, 0, aStringB3);
-
-    ScTable* pTab = pDoc->GetTable[0];
-
-    // swap rows
-    pTab->SwapRow(0,1);
-
-    aString = m_pDoc->GetString(0,0,0);
-    CPPUNIT_ASSERT_MESSAGE("A1 should contain aStringA2", aString == aStringA2);
-    aString = m_pDoc->GetString(0,1,0);
-    CPPUNIT_ASSERT_MESSAGE("A2 should contain aStringA1", aString == aStringA1);
-    aString = m_pDoc->GetString(1,0,0);
-    CPPUNIT_ASSERT_MESSAGE("B1 should contain aStringB2", aString == aStringB2);
-    aString = m_pDoc->GetString(1,1,0);
-    CPPUNIT_ASSERT_MESSAGE("B2 should contain aStringB1", aString == aStringB1);
-    aString = m_pDoc->GetString(0,2,0);
-    CPPUNIT_ASSERT_MESSAGE("A3 should contain aStringA3", aString == aStringA3);
-
-    // back to orginal state
-    pTab->SwapRow(1,0);
-
-    aString = m_pDoc->GetString(0,0,0);
-    CPPUNIT_ASSERT_MESSAGE("A1 should contain aStringA1", aString == aStringA1);
-    aString = m_pDoc->GetString(0,1,0);
-    CPPUNIT_ASSERT_MESSAGE("A2 should contain aStringA1", aString == aStringA2);
-    aString = m_pDoc->GetString(1,0,0);
-    CPPUNIT_ASSERT_MESSAGE("B1 should contain aStringB1", aString == aStringB1);
-    aString = m_pDoc->GetString(1,1,0);
-    CPPUNIT_ASSERT_MESSAGE("B2 should contain aStringB2", aString == aStringB2);
-    aString = m_pDoc->GetString(0,2,0);
-    CPPUNIT_ASSERT_MESSAGE("A3 should contain aStringA3", aString == aStringA3);
-
-    // swap cols
-    pTab->SwapCol(0,1);
-
-    aString = m_pDoc->GetString(0,0,0);
-    CPPUNIT_ASSERT_MESSAGE("A1 should contain aStringB1", aString == aStringB1);
-    aString = m_pDoc->GetString(1,0,0);
-    CPPUNIT_ASSERT_MESSAGE("B1 should contain aStringA1", aString == aStringA1);
-    aString = m_pDoc->GetString(0,1,0);
-    CPPUNIT_ASSERT_MESSAGE("A2 should contain aStringB2", aString == aStringB2);
-    aString = m_pDoc->GetString(1,1,0);
-    CPPUNIT_ASSERT_MESSAGE("B2 should contain aStringA2", aString == aStringA2);
-    aString = m_pDoc->GetString(0,2,0);
-    CPPUNIT_ASSERT_MESSAGE("A3 should contain aStringA3", aString == aStringA3);
-
-    // back to orginal state
-    pTab->SwapRow(1,0);
-
-    aString = m_pDoc->GetString(0,0,0);
-    CPPUNIT_ASSERT_MESSAGE("A1 should contain aStringA1", aString == aStringA1);
-    aString = m_pDoc->GetString(0,1,0);
-    CPPUNIT_ASSERT_MESSAGE("A2 should contain aStringA1", aString == aStringA2);
-    aString = m_pDoc->GetString(1,0,0);
-    CPPUNIT_ASSERT_MESSAGE("B1 should contain aStringB1", aString == aStringB1);
-    aString = m_pDoc->GetString(1,1,0);
-    CPPUNIT_ASSERT_MESSAGE("B2 should contain aStringB2", aString == aStringB2);
-    aString = m_pDoc->GetString(0,2,0);
-    CPPUNIT_ASSERT_MESSAGE("A3 should contain aStringA3", aString == aStringA3);
-
-}
-*/
 
 void Test::testAnchoredRotatedShape()
 {
diff --git a/sc/qa/unit/ucalc.hxx b/sc/qa/unit/ucalc.hxx
index e8a976b..6e262ad 100644
--- a/sc/qa/unit/ucalc.hxx
+++ b/sc/qa/unit/ucalc.hxx
@@ -270,7 +270,6 @@ public:
     void testNoteDeleteRow();
     void testNoteDeleteCol();
     void testAerasWithNotes();
-//    void testSwapCells();
     void testAnchoredRotatedShape();
     void testCellTextWidth();
     void testEditTextIterator();
@@ -374,7 +373,6 @@ public:
     CPPUNIT_TEST(testNoteDeleteRow);
     CPPUNIT_TEST(testNoteDeleteCol);
     CPPUNIT_TEST(testAerasWithNotes);
-//    CPPUNIT_TEST(testSwapCells);
     CPPUNIT_TEST(testAnchoredRotatedShape);
     CPPUNIT_TEST(testCellTextWidth);
     CPPUNIT_TEST(testEditTextIterator);


More information about the Libreoffice-commits mailing list