This is the mail archive of the
mauve-patches@sourceware.org
mailing list for the Mauve project.
Re: FYI: TestPaintGraphics
On Fri, 2006-03-10 at 09:48 -0500, Thomas Fitzsimmons wrote:
> Hi,
>
> I committed this new test.
And this fix.
Tom
2006-03-10 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/testlet/java/awt/Graphics/TestPaintGraphics.java: Fix
test.
Index: gnu/testlet/java/awt/Graphics/TestPaintGraphics.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/awt/Graphics/TestPaintGraphics.java,v
retrieving revision 1.1
diff -u -r1.1 TestPaintGraphics.java
--- gnu/testlet/java/awt/Graphics/TestPaintGraphics.java 10 Mar 2006 14:47:07 -0000 1.1
+++ gnu/testlet/java/awt/Graphics/TestPaintGraphics.java 10 Mar 2006 15:14:58 -0000
@@ -46,7 +46,7 @@
if (!onePaintDone)
{
firstGraphicsHashCode = System.identityHashCode(g);
- onePaintDone = false;
+ onePaintDone = true;
repaint();
}
else
@@ -58,10 +58,11 @@
};
f.add (p);
+ f.setSize (200, 200);
f.show ();
Robot r = harness.createRobot();
r.delay(2000);
-
+ harness.check(firstGraphicsHashCode != 0 && secondGraphicsHashCode != 0);
harness.check(firstGraphicsHashCode != secondGraphicsHashCode);
}
}