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
9e0502f2
Kaydet (Commit)
9e0502f2
authored
Nis 27, 2013
tarafından
David Ostrovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
comment out storeToURL() as it crashes with debug build
Change-Id: Ia0d3f1d12c53e8d7ce0da55977867d5ab932c92f
üst
b3c14978
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
var_fields.py
sw/qa/python/var_fields.py
+7
-2
No files found.
sw/qa/python/var_fields.py
Dosyayı görüntüle @
9e0502f2
...
...
@@ -23,7 +23,7 @@ class TestVarFields(unittest.TestCase):
Note: this test was migrated from java (the steps numbering too)
sw/qa/complex/writer/VarFields.java
Embarrassing, FixMe, TODO
:
TODO 1
:
Unlike in java, this test doesn't overwrite the field condition.
Apparently xDoc.refresh() is somehow broken (from python), because doing the update
manually does overwrite the condition:
...
...
@@ -33,6 +33,11 @@ class TestVarFields(unittest.TestCase):
3. check that TextSection's condition still has the right value: "foo EQ 1"
4. Update field with Tool=>Update=>Fields (or [F9])
5. check that TextSection's condition was overriden: "0"
TODO 2: CRASH calling xDoc.storeToURL(...) with debug build:
http://pastebin.com/76KeCT77
so commented storeToURL out for now.
(In any event: why storeToURL(..) is working with release build?)
"""
xDoc
=
self
.
__class__
.
_xDoc
xBodyText
=
xDoc
.
getText
()
...
...
@@ -108,7 +113,7 @@ class TestVarFields(unittest.TestCase):
xDoc
.
refresh
()
# 18. store document
url
=
os
.
path
.
join
(
os
.
environ
[
"TestUserDir"
],
"VarFields.odt"
)
xDoc
.
storeToURL
(
url
,
tuple
(
list
(
range
(
0
))))
#
xDoc.storeToURL(url, tuple(list(range(0))))
# 19. retrieve the section
xPropSet
=
xDoc
.
getTextSections
()
.
getByIndex
(
0
)
# 20. retrieve the condition property of that section
...
...
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