Kaydet (Commit) e19cd715 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Improve test failure diagnostics

Change-Id: I42d5d56b3f01ef49eb62d784c1a80fbc9972f7d8
üst 263b4b99
...@@ -412,11 +412,13 @@ public class _XAccessibleComponent extends MultiMethodTest { ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment