summaryrefslogtreecommitdiff
path: root/sw/qa/python
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-31 01:22:47 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-04-01 13:59:31 +0200
commit5725cb7d633d023cf83011e22313dfb4efb541ef (patch)
tree57ad6588ba6a62d259e293905c8880d16e1e2039 /sw/qa/python
parent4dde5a623d563f9007dd3539b835489a27128d65 (diff)
give each test an own doc
Change-Id: I89906cfef234c51f117f06eca0dbb4101cce6b01
Diffstat (limited to 'sw/qa/python')
-rw-r--r--sw/qa/python/check_table.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/sw/qa/python/check_table.py b/sw/qa/python/check_table.py
index cd67edf96f76..2cc42b5ccbd0 100644
--- a/sw/qa/python/check_table.py
+++ b/sw/qa/python/check_table.py
@@ -8,20 +8,16 @@ from com.sun.star.table.BorderLineStyle import (DOUBLE, SOLID, EMBOSSED,\
class CheckTable(unittest.TestCase):
_uno = None
- _xDoc = None
- _xDocF = None
@classmethod
def setUpClass(cls):
cls._uno = UnoInProcess()
cls._uno.setUp()
- cls._xDoc = cls._uno.openEmptyWriterDoc()
- cls._xDocF = cls._uno.openEmptyWriterDoc()
@classmethod
def tearDownClass(cls):
cls._uno.tearDown()
def test_tableborder(self):
- xDoc = self.__class__._xDoc
+ xDoc = CheckTable._uno.openEmptyWriterDoc()
# insert table
xTable = xDoc.createInstance("com.sun.star.text.TextTable")
xTable.initialize(3, 3)
@@ -229,11 +225,9 @@ class CheckTable(unittest.TestCase):
# close document
xDoc.dispose()
- # set border
def test_fdo58242(self):
-
- xDoc = self.__class__._xDocF
+ xDoc = CheckTable._uno.openEmptyWriterDoc()
# insert table
xTable = xDoc.createInstance("com.sun.star.text.TextTable")
xTable.initialize(3, 3)
@@ -255,7 +249,7 @@ class CheckTable(unittest.TestCase):
xDoc.dispose()
def test_descriptions(self):
- xDoc = self.__class__._xDoc
+ xDoc = CheckTable._uno.openEmptyWriterDoc()
# insert table
xTable = xDoc.createInstance("com.sun.star.text.TextTable")
xTable.initialize(3, 3)
@@ -278,6 +272,7 @@ class CheckTable(unittest.TestCase):
self.assertEqual(2, len(xTable.ColumnDescriptions))
self.assertEqual('Cell 1 0', xTable.ColumnDescriptions[0])
self.assertEqual('Cell 2 0', xTable.ColumnDescriptions[1])
+ xDoc.dispose()
if __name__ == '__main__':