diff options
author | sb <sb@openoffice.org> | 2010-02-26 17:03:57 +0100 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-02-26 17:03:57 +0100 |
commit | b9129478ddb10059fef0a3934e45529eebcb0cfe (patch) | |
tree | 0becfbdfb09f8796a4e16db4c7e973b7abe2c7e1 /qadevOOo/tests/java/ifc/accessibility | |
parent | 3d597f9fb7c5e2385bed882c85b25517fd19190e (diff) |
sb118: improved tests (no getActiveTopWindow etc.)
Diffstat (limited to 'qadevOOo/tests/java/ifc/accessibility')
-rw-r--r-- | qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java | 39 |
1 files changed, 29 insertions, 10 deletions
diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java index 5279ed5b79d9..c5e302451c21 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java @@ -167,34 +167,53 @@ public class _XAccessibleComponent extends MultiMethodTest { boolean locRes = true; for (int x = -1; x <= bounds.Width; x++) { - locRes &= !oObj.containsPoint(new Point(x, -1)); - locRes &= !oObj.containsPoint( - new Point(x, bounds.Height + bounds.Y)); + if (oObj.containsPoint(new Point(x, -1))) { + log.println( + "Outer upper and lower bounds CONTAIN some component point" + + " (" + x + ", -1) - FAILED"); + locRes = false; + break; + } + if (oObj.containsPoint(new Point(x, bounds.Height + bounds.Y))) { + log.println( + "Outer upper and lower bounds CONTAIN some component point" + + " (" + x + ", " + bounds.Height + bounds.Y + + ") - FAILED"); + locRes = false; + break; + } } if (locRes) { log.println("Outer upper and lower bounds contain no component " + "points - OK"); } else { - log.println("Outer upper and lower bounds CONTAIN some component " + - "points - FAILED"); result = false; } locRes = true; for (int y = -1; y <= bounds.Height; y++) { - locRes &= !oObj.containsPoint(new Point(-1, y)); - locRes &= !oObj.containsPoint( - new Point(bounds.X + bounds.Width, y)); + if (oObj.containsPoint(new Point(-1, y))) { + log.println( + "Outer left and right bounds CONTAIN some component point" + + " (-1, " + y + ") - FAILED"); + locRes = false; + break; + } + if (oObj.containsPoint(new Point(bounds.X + bounds.Width, y))) { + log.println( + "Outer left and right bounds CONTAIN some component point" + + " (" + bounds.X + bounds.Width + ", " + y + ") - FAILED"); + locRes = false; + break; + } } if (locRes) { log.println("Outer left and right bounds contain no component " + "points - OK"); } else { - log.println("Outer left and right bounds CONTAIN some component " + - "points - FAILED"); result = false; } |