From 5f5d20a94d3c541656dcce6e637e63191d97fba5 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Sat, 27 Aug 2011 23:51:41 +0000 Subject: [PATCH] fix test --- .../gwt/query/client/GQueryEffectsTest.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryEffectsTest.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryEffectsTest.java index 6442fa4a..fa259332 100644 --- a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryEffectsTest.java +++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryEffectsTest.java @@ -164,11 +164,11 @@ public class GQueryEffectsTest extends GWTTestCase { // Delayed assertions at different intervals Timer timerShortTime = new Timer() { public void run() { - double o = Double.valueOf(sectA.css("opacity")); + double o = Double.valueOf(sectA.css("opacity", false)); assertTrue( "'sectA' opacity must be in the interval 0-0.5 but is: " + o, o > 0 && o < 0.5); - o = Double.valueOf(sectB.css("opacity")); + o = Double.valueOf(sectB.css("opacity", false)); assertTrue( "'sectB' opacity must be in the interval 0.5-1 but is: " + o, o > 0.5 && o < 1); @@ -176,13 +176,13 @@ public class GQueryEffectsTest extends GWTTestCase { }; Timer timerMidTime = new Timer() { public void run() { - assertEquals("inline", sectA.css("display")); - assertEquals("", sectB.css("display")); - double o = Double.valueOf(sectA.css("opacity")); + assertEquals("inline", sectA.css("display", false)); + assertEquals("", sectB.css("display", false)); + double o = Double.valueOf(sectA.css("opacity", false)); assertTrue( "'sectA' opacity must be in the interval 0.5-1 but is: " + o, o > 0.5 && o < 1); - o = Double.valueOf(sectB.css("opacity")); + o = Double.valueOf(sectB.css("opacity", false)); assertTrue( "'sectB' opacity must be in the interval 0-0.5 but is: " + o, o > 0 && o < 0.5); @@ -190,8 +190,8 @@ public class GQueryEffectsTest extends GWTTestCase { }; Timer timerLongTime = new Timer() { public void run() { - assertEquals("inline", sectA.css("display")); - assertEquals("none", sectB.css("display")); + assertEquals("inline", sectA.css("display", false)); + assertEquals("none", sectB.css("display", false)); // Last delayed assertion has to stop the test to avoid a timeout // failure finishTest(); -- 2.39.5