Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
5725cb7d
Kaydet (Commit)
5725cb7d
authored
Mar 30, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
give each test an own doc
Change-Id: I89906cfef234c51f117f06eca0dbb4101cce6b01
üst
4dde5a62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
check_table.py
sw/qa/python/check_table.py
+4
-9
No files found.
sw/qa/python/check_table.py
Dosyayı görüntüle @
5725cb7d
...
@@ -8,20 +8,16 @@ from com.sun.star.table.BorderLineStyle import (DOUBLE, SOLID, EMBOSSED,\
...
@@ -8,20 +8,16 @@ from com.sun.star.table.BorderLineStyle import (DOUBLE, SOLID, EMBOSSED,\
class
CheckTable
(
unittest
.
TestCase
):
class
CheckTable
(
unittest
.
TestCase
):
_uno
=
None
_uno
=
None
_xDoc
=
None
_xDocF
=
None
@classmethod
@classmethod
def
setUpClass
(
cls
):
def
setUpClass
(
cls
):
cls
.
_uno
=
UnoInProcess
()
cls
.
_uno
=
UnoInProcess
()
cls
.
_uno
.
setUp
()
cls
.
_uno
.
setUp
()
cls
.
_xDoc
=
cls
.
_uno
.
openEmptyWriterDoc
()
cls
.
_xDocF
=
cls
.
_uno
.
openEmptyWriterDoc
()
@classmethod
@classmethod
def
tearDownClass
(
cls
):
def
tearDownClass
(
cls
):
cls
.
_uno
.
tearDown
()
cls
.
_uno
.
tearDown
()
def
test_tableborder
(
self
):
def
test_tableborder
(
self
):
xDoc
=
self
.
__class__
.
_xDoc
xDoc
=
CheckTable
.
_uno
.
openEmptyWriterDoc
()
# insert table
# insert table
xTable
=
xDoc
.
createInstance
(
"com.sun.star.text.TextTable"
)
xTable
=
xDoc
.
createInstance
(
"com.sun.star.text.TextTable"
)
xTable
.
initialize
(
3
,
3
)
xTable
.
initialize
(
3
,
3
)
...
@@ -229,11 +225,9 @@ class CheckTable(unittest.TestCase):
...
@@ -229,11 +225,9 @@ class CheckTable(unittest.TestCase):
# close document
# close document
xDoc
.
dispose
()
xDoc
.
dispose
()
# set border
def
test_fdo58242
(
self
):
def
test_fdo58242
(
self
):
xDoc
=
CheckTable
.
_uno
.
openEmptyWriterDoc
()
xDoc
=
self
.
__class__
.
_xDocF
# insert table
# insert table
xTable
=
xDoc
.
createInstance
(
"com.sun.star.text.TextTable"
)
xTable
=
xDoc
.
createInstance
(
"com.sun.star.text.TextTable"
)
xTable
.
initialize
(
3
,
3
)
xTable
.
initialize
(
3
,
3
)
...
@@ -255,7 +249,7 @@ class CheckTable(unittest.TestCase):
...
@@ -255,7 +249,7 @@ class CheckTable(unittest.TestCase):
xDoc
.
dispose
()
xDoc
.
dispose
()
def
test_descriptions
(
self
):
def
test_descriptions
(
self
):
xDoc
=
self
.
__class__
.
_xDoc
xDoc
=
CheckTable
.
_uno
.
openEmptyWriterDoc
()
# insert table
# insert table
xTable
=
xDoc
.
createInstance
(
"com.sun.star.text.TextTable"
)
xTable
=
xDoc
.
createInstance
(
"com.sun.star.text.TextTable"
)
xTable
.
initialize
(
3
,
3
)
xTable
.
initialize
(
3
,
3
)
...
@@ -278,6 +272,7 @@ class CheckTable(unittest.TestCase):
...
@@ -278,6 +272,7 @@ class CheckTable(unittest.TestCase):
self
.
assertEqual
(
2
,
len
(
xTable
.
ColumnDescriptions
))
self
.
assertEqual
(
2
,
len
(
xTable
.
ColumnDescriptions
))
self
.
assertEqual
(
'Cell 1 0'
,
xTable
.
ColumnDescriptions
[
0
])
self
.
assertEqual
(
'Cell 1 0'
,
xTable
.
ColumnDescriptions
[
0
])
self
.
assertEqual
(
'Cell 2 0'
,
xTable
.
ColumnDescriptions
[
1
])
self
.
assertEqual
(
'Cell 2 0'
,
xTable
.
ColumnDescriptions
[
1
])
xDoc
.
dispose
()
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment