summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-02 11:21:04 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-02 11:21:04 +0200
commite19cd71556fe0db3608fb230e3872a5e8d8d044c (patch)
tree58bde4aa0283dbee07841657fb5211ee780384f4 /qadevOOo
parent263b4b99856c81c12707a5e9823d693a594ee305 (diff)
Improve test failure diagnostics
Change-Id: I42d5d56b3f01ef49eb62d784c1a80fbc9972f7d8
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java
index f09b1e3f0023..58fe289a102a 100644
--- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java
+++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java
@@ -412,11 +412,13 @@ public class _XAccessibleComponent extends MultiMethodTest {
public void _getLocation() {
requiredMethod("getBounds()");
- boolean result = true;
Point loc = oObj.getLocation();
-
- result &= ((loc.X == bounds.X) && (loc.Y == bounds.Y));
-
+ boolean result = loc.X == bounds.X && loc.Y == bounds.Y;
+ if (!result) {
+ log.println(
+ "loc.X=" + loc.X + " vs. bounds.X=" + bounds.X + ", loc.Y="
+ + loc.Y + " vs. bounds.Y=" + bounds.Y);
+ }
tRes.tested("getLocation()", result);
}