From: Adolfo Panizo Date: Fri, 26 Dec 2014 17:48:54 +0000 (+0100) Subject: Using isVisible for widget selector test. Also removingFromParent X-Git-Tag: gwtquery-project-1.4.3~7^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=447ddbc2d7b69a56540d8b1116913d91b04ec431;p=gwtquery.git Using isVisible for widget selector test. Also removingFromParent Button. --- diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryWidgetsTestGwt.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryWidgetsTestGwt.java index 287e6440..4d66d771 100644 --- a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryWidgetsTestGwt.java +++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryWidgetsTestGwt.java @@ -135,12 +135,13 @@ public class GQueryWidgetsTestGwt extends GWTTestCase { } public void testSelectorWidget() { - final Button b1 = new Button("click-me"); + final Button b1 = new Button("Button click"); RootPanel.get().add(b1); GQuery g = $(b1); - assertEquals("inline-block", $(b1).css("display")); + assertEquals(true, $(b1).isVisible()); g.hide(); - assertEquals("none", $(b1).css("display")); + assertEquals(false, $(b1).isVisible()); + b1.removeFromParent(); } }