Improve test failure diagnostics
Change-Id: I42d5d56b3f01ef49eb62d784c1a80fbc9972f7d8
This commit is contained in:
parent
263b4b9985
commit
e19cd71556
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user