Updates:
        Status: Accepted
        Owner: heuermh
Labels: Type-Defect Priority-Critical Effort-Medium OpSys-All Toolkit-Piccolo2D.Java Component-Extras Milestone-1.3.1


Comment #2 on issue 195 by heue...@gmail.com: testPSwingDelegatesPaintingToItsComponent(edu.umd.cs.piccolox.pswing.PSwingTest) fails on release-1.3 branch
http://code.google.com/p/piccolo2d/issues/detail?id=195

The following fix to the unit test makes the test pass

$ svn diff .
Index: src/test/java/edu/umd/cs/piccolox/pswing/PSwingTest.java
===================================================================
--- src/test/java/edu/umd/cs/piccolox/pswing/PSwingTest.java (revision 1085) +++ src/test/java/edu/umd/cs/piccolox/pswing/PSwingTest.java (working copy)
@@ -90,6 +90,7 @@
                panel.setBackground(Color.RED);
                panel.setPreferredSize(new Dimension(100, 100));

+                pSwing.updateBounds();
                final BufferedImage img = pSwing.paintComponent();

                assertEquals(Color.RED.getRGB(), img.getRGB(50, 50));


Probably has something to do with this commit

http://code.google.com/p/piccolo2d/source/diff?spec=svn1085&r=1045&format=side&path=/piccolo2d.java/branches/release-1.3/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java&old_path=/piccolo2d.java/branches/release-1.3/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java&old=983

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en

Reply via email to