From e19cd71556fe0db3608fb230e3872a5e8d8d044c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 2 Jun 2015 11:21:04 +0200 Subject: Improve test failure diagnostics Change-Id: I42d5d56b3f01ef49eb62d784c1a80fbc9972f7d8 --- .../tests/java/ifc/accessibility/_XAccessibleComponent.java | 10 ++++++---- 1 file 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); } -- cgit