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
7a8b2e21
Kaydet (Commit)
7a8b2e21
authored
May 07, 2016
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
uitest: use a constant instead of repeating the value
Change-Id: I636f3750a6326c7293d5cdeac89b7f9507be2001
üst
6d1693ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
uitest_helper.py
uitest/uitest_helper.py
+12
-10
No files found.
uitest/uitest_helper.py
Dosyayı görüntüle @
7a8b2e21
...
...
@@ -11,6 +11,8 @@ from helper import EventListener
class
UITest
(
object
):
DEFAULT_SLEEP
=
0.1
def
__init__
(
self
,
xUITest
,
xContext
):
self
.
_xUITest
=
xUITest
self
.
_xContext
=
xContext
...
...
@@ -21,10 +23,10 @@ class UITest(object):
time_
=
0
while
time_
<
30
:
if
event
.
executed
:
time
.
sleep
(
0.1
)
time
.
sleep
(
self
.
DEFAULT_SLEEP
)
return
time_
+=
0.1
time
.
sleep
(
0.1
)
time_
+=
self
.
DEFAULT_SLEEP
time
.
sleep
(
self
.
DEFAULT_SLEEP
)
# report a failure here
print
(
"failure execute modal dialog"
)
...
...
@@ -35,10 +37,10 @@ class UITest(object):
time_
=
0
while
time_
<
30
:
if
event
.
executed
:
time
.
sleep
(
0.1
)
time
.
sleep
(
self
.
DEFAULT_SLEEP
)
return
time_
+=
0.1
time
.
sleep
(
0.11
)
time_
+=
self
.
DEFAULT_SLEEP
time
.
sleep
(
self
.
DEFAULT_SLEEP
)
# report a failure here
print
(
"failure execute modeless dialog"
)
...
...
@@ -52,8 +54,8 @@ class UITest(object):
while
time_
<
30
:
if
event
.
executed
:
return
time_
+=
0.1
time
.
sleep
(
0.1
)
time_
+=
self
.
DEFAULT_SLEEP
time
.
sleep
(
self
.
DEFAULT_SLEEP
)
print
(
"failure doc in start center"
)
...
...
@@ -72,7 +74,7 @@ class UITest(object):
elif
event
.
hasExecuted
(
"OnViewClosed"
):
return
time_
+=
0.1
time
.
sleep
(
0.1
)
time_
+=
self
.
DEFAULT_SLEEP
time
.
sleep
(
self
.
DEFAULT_SLEEP
)
# vim:set shiftwidth=4 softtabstop=4 expandtab: */
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