From 447ddbc2d7b69a56540d8b1116913d91b04ec431 Mon Sep 17 00:00:00 2001 From: Adolfo Panizo Date: Fri, 26 Dec 2014 18:48:54 +0100 Subject: [PATCH] Using isVisible for widget selector test. Also removingFromParent Button. --- .../com/google/gwt/query/client/GQueryWidgetsTestGwt.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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(); } } -- 2.39.5