Improve test failure diagnostics
Change-Id: I42d5d56b3f01ef49eb62d784c1a80fbc9972f7d8
This commit is contained in:
@@ -412,11 +412,13 @@ public class _XAccessibleComponent extends MultiMethodTest {
|
|||||||
public void _getLocation() {
|
public void _getLocation() {
|
||||||
requiredMethod("getBounds()");
|
requiredMethod("getBounds()");
|
||||||
|
|
||||||
boolean result = true;
|
|
||||||
Point loc = oObj.getLocation();
|
Point loc = oObj.getLocation();
|
||||||
|
boolean result = loc.X == bounds.X && loc.Y == bounds.Y;
|
||||||
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);
|
tRes.tested("getLocation()", result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user