]> source.dussan.org Git - gwtquery.git/commitdiff
Using isVisible for widget selector test. Also removingFromParent
authorAdolfo Panizo <adolfo.panizo@gmail.com>
Fri, 26 Dec 2014 17:48:54 +0000 (18:48 +0100)
committerAdolfo Panizo <adolfo.panizo@gmail.com>
Fri, 26 Dec 2014 17:48:54 +0000 (18:48 +0100)
Button.

gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryWidgetsTestGwt.java

index 287e644029b53e85351801aa1d2c802d5f9cbcc0..4d66d7712659fa2ca95152c5869ba4c1a4e679f6 100644 (file)
@@ -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();
   }
 
 }