[Libreoffice-commits] .: sc/qa

Markus Mohrhard mmohrhard at kemper.freedesktop.org
Sat Mar 31 19:20:15 PDT 2012


 sc/qa/unit/subsequent_filters-test.cxx |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

New commits:
commit 9654d3baed29abd009a214e4292000047fb64451
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sun Apr 1 04:18:48 2012 +0200

    more test cases for border import

diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 3502d34..391b157 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -493,6 +493,25 @@ void ScFiltersTest::testBorderODS()
     CPPUNIT_ASSERT(pRight);
     CPPUNIT_ASSERT_EQUAL(pRight->GetStyle(),editeng::SOLID);
 
+    pDoc->GetBorderLines( 2, 1, 0, &pLeft, &pTop, &pRight, &pBottom );
+    CPPUNIT_ASSERT(!pLeft);
+    CPPUNIT_ASSERT(!pTop);
+    CPPUNIT_ASSERT(!pBottom);
+
+    CPPUNIT_ASSERT(pRight);
+    CPPUNIT_ASSERT_EQUAL(pRight->GetStyle(),editeng::SOLID);
+    CPPUNIT_ASSERT_EQUAL(pRight->GetWidth(),20L);
+
+    pDoc->GetBorderLines( 2, 8, 0, &pLeft, &pTop, &pRight, &pBottom );
+
+    CPPUNIT_ASSERT(pLeft);
+    CPPUNIT_ASSERT(pTop);
+    CPPUNIT_ASSERT(pBottom);
+    CPPUNIT_ASSERT(pRight);
+    CPPUNIT_ASSERT_EQUAL(pRight->GetStyle(),editeng::SOLID);
+    CPPUNIT_ASSERT_EQUAL(pRight->GetWidth(),5L);
+    CPPUNIT_ASSERT(pRight->GetColor() == Color(COL_BLUE));
+
     xDocSh->DoClose();
 }
 


More information about the Libreoffice-commits mailing list