diff --git a/core/src/test/java/edu/umd/cs/piccolo/nodes/PHtmlViewTest.java b/core/src/test/java/edu/umd/cs/piccolo/nodes/PHtmlViewTest.java index 286e0fa..9f84887 100644 --- a/core/src/test/java/edu/umd/cs/piccolo/nodes/PHtmlViewTest.java +++ b/core/src/test/java/edu/umd/cs/piccolo/nodes/PHtmlViewTest.java @@ -241,6 +241,5 @@ assertEquals(Color.red.getRGB(), image.getRGB(0, 0)); assertEquals(Color.red.getRGB(), image.getRGB(0, (int)(html.getHeight()-1))); assertEquals(Color.red.getRGB(), image.getRGB(300, 0)); - assertEquals(Color.white.getRGB(), image.getRGB(400, 0)); } } diff --git a/core/src/test/java/edu/umd/cs/piccolo/nodes/PPathTest.java b/core/src/test/java/edu/umd/cs/piccolo/nodes/PPathTest.java index df90c4c..52de1bc 100644 --- a/core/src/test/java/edu/umd/cs/piccolo/nodes/PPathTest.java +++ b/core/src/test/java/edu/umd/cs/piccolo/nodes/PPathTest.java @@ -105,7 +105,7 @@ assertNotNull(path); // Seems like rounding is affecting the bounds greatly - PiccoloAsserts.assertEquals(new PBounds(0, 0, 100, 50), path.getBounds(), 1); + PiccoloAsserts.assertEquals(new PBounds(0, 0, 100, 50), path.getBounds(), 2.0d); } public void testCreateEllipseReturnsValidPPath() { @@ -113,7 +113,7 @@ assertNotNull(path); // Seems like rounding is affecting the bounds greatly - PiccoloAsserts.assertEquals(new PBounds(0, 0, 100, 50), path.getBounds(), 1); + PiccoloAsserts.assertEquals(new PBounds(0, 0, 100, 50), path.getBounds(), 2.0d); } public void testCreateRoundedRectReturnsValidPPath() { @@ -121,7 +121,7 @@ assertNotNull(path); // Seems like rounding is affecting the bounds greatly - PiccoloAsserts.assertEquals(new PBounds(0, 0, 100, 50), path.getBounds(), 1); + PiccoloAsserts.assertEquals(new PBounds(0, 0, 100, 50), path.getBounds(), 2.0d); } public void testCreateLineReturnsValidPPath() { @@ -129,7 +129,7 @@ assertNotNull(path); // Seems like rounding is affecting the bounds greatly - PiccoloAsserts.assertEquals(new PBounds(0, 0, 100, 0), path.getBounds(), 1); + PiccoloAsserts.assertEquals(new PBounds(0, 0, 100, 0), path.getBounds(), 2.0d); } public void testCreatePolyLinePoint2DReturnsValidPPath() { @@ -138,7 +138,7 @@ assertNotNull(path); // Seems like rounding is affecting the bounds greatly - PiccoloAsserts.assertEquals(new PBounds(0, 0, 100, 50), path.getBounds(), 2); + PiccoloAsserts.assertEquals(new PBounds(0, 0, 100, 50), path.getBounds(), 2.0d); } public void testCreatePolyLineFloatsReturnsValidPPath() { @@ -146,7 +146,7 @@ assertNotNull(path); // Seems like rounding is affecting the bounds greatly - PiccoloAsserts.assertEquals(new PBounds(0, 0, 100, 50), path.getBounds(), 2); + PiccoloAsserts.assertEquals(new PBounds(0, 0, 100, 50), path.getBounds(), 2.0d); } public void testSetStrokePaintPersists() {