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
a9cf50c2
Kaydet (Commit)
a9cf50c2
authored
Eyl 30, 2013
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
junit: make tests robust by compensating for intermittent sizing race.
üst
ab683542
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
_XAccessibleComponent.java
...o/tests/java/ifc/accessibility/_XAccessibleComponent.java
+13
-7
No files found.
qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java
Dosyayı görüntüle @
a9cf50c2
...
...
@@ -477,15 +477,21 @@ public class _XAccessibleComponent extends MultiMethodTest {
public
void
_getSize
()
{
requiredMethod
(
"getBounds()"
);
boolean
result
=
tru
e
;
boolean
result
=
fals
e
;
Size
size
=
oObj
.
getSize
();
result
&=
(
size
.
Width
==
bounds
.
Width
);
result
&=
(
size
.
Height
==
bounds
.
Height
);
if
(!
result
)
{
log
.
println
(
"bounds "
+
bounds
.
Width
+
"x"
+
bounds
.
Height
+
" vs. size "
+
size
.
Width
+
"x"
+
size
.
Height
);
for
(
int
i
=
0
;
i
<
2
&&
!
result
;
i
++)
{
result
=
true
;
result
&=
(
size
.
Width
==
bounds
.
Width
);
result
&=
(
size
.
Height
==
bounds
.
Height
);
if
(!
result
)
{
log
.
println
(
"potential race bounds "
+
bounds
.
Width
+
"x"
+
bounds
.
Height
+
" vs. size "
+
size
.
Width
+
"x"
+
size
.
Height
);
// Possibily we hit a race condition and it re-sized (?) ...
bounds
=
oObj
.
getBounds
();
size
=
oObj
.
getSize
();
}
}
tRes
.
tested
(
"getSize()"
,
result
);
...
...
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