diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-04-01 04:18:48 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-04-01 04:18:48 +0200 |
commit | 9654d3baed29abd009a214e4292000047fb64451 (patch) | |
tree | 16ea00711ddbd8826e6a7d6a49f812b8d81b6d0e /sc | |
parent | f19ebe978a329e5322fca89aaf568371c532e5fb (diff) |
more test cases for border import
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/subsequent_filters-test.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx index 3502d34fd32a..391b1579fa80 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(); } |