diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2015-03-17 07:56:58 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2015-03-30 04:34:15 +0200 |
commit | c75c0cd7eea3b6c626ab3c981b717a92cbf1d8f8 (patch) | |
tree | 4eb63d5d0e87fa922a34c9adee68fcb5bdf1e18b | |
parent | f104581dd1c3daf8e0ccd5c027259f12792cd26e (diff) |
prepare test code for next tests
Change-Id: I38cfba16e3187a9d80b51258c85f06a829a8a76c
-rw-r--r-- | sc/qa/extras/new_cond_format.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/qa/extras/new_cond_format.cxx b/sc/qa/extras/new_cond_format.cxx index cd4826c219c3..ea17e10e646d 100644 --- a/sc/qa/extras/new_cond_format.cxx +++ b/sc/qa/extras/new_cond_format.cxx @@ -30,7 +30,7 @@ public: virtual void setUp() SAL_OVERRIDE; virtual void tearDown() SAL_OVERRIDE; - uno::Reference< uno::XInterface > init(); + uno::Reference< uno::XInterface > init(sal_Int32 nIndex = 0); void testRequestCondFormatListFromSheet(); void testCondFormatListProperties(); void testCondFormatListFormats(); @@ -54,7 +54,7 @@ ScConditionalFormatTest::ScConditionalFormatTest() { } -uno::Reference< uno::XInterface > ScConditionalFormatTest::init() +uno::Reference< uno::XInterface > ScConditionalFormatTest::init(sal_Int32 nIndex) { if(!mxComponent.is()) { @@ -68,7 +68,7 @@ uno::Reference< uno::XInterface > ScConditionalFormatTest::init() // get the first sheet uno::Reference< sheet::XSpreadsheetDocument > xDoc(mxComponent, uno::UNO_QUERY_THROW); uno::Reference< container::XIndexAccess > xIndex (xDoc->getSheets(), uno::UNO_QUERY_THROW); - uno::Reference< sheet::XSpreadsheet > xSheet( xIndex->getByIndex(0), uno::UNO_QUERY_THROW); + uno::Reference< sheet::XSpreadsheet > xSheet( xIndex->getByIndex(nIndex), uno::UNO_QUERY_THROW); return xSheet; } |