Kaydet (Commit) 9654d3ba authored tarafından Markus Mohrhard's avatar Markus Mohrhard

more test cases for border import

üst f19ebe97
...@@ -493,6 +493,25 @@ void ScFiltersTest::testBorderODS() ...@@ -493,6 +493,25 @@ void ScFiltersTest::testBorderODS()
CPPUNIT_ASSERT(pRight); CPPUNIT_ASSERT(pRight);
CPPUNIT_ASSERT_EQUAL(pRight->GetStyle(),editeng::SOLID); 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(); xDocSh->DoClose();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment