]> source.dussan.org Git - gwtquery.git/commitdiff
Using GQuery var instance instead of evaluating selector multiple
authorAdolfo Panizo <adolfo.panizo@gmail.com>
Fri, 26 Dec 2014 20:32:24 +0000 (21:32 +0100)
committerAdolfo Panizo <adolfo.panizo@gmail.com>
Fri, 26 Dec 2014 20:32:24 +0000 (21:32 +0100)
times.

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

index 66e1aab53ff5e16d4f3cc9baf7cbff04250f5ead..801992f9997bffff2570493e780e6c2c2aee24d0 100644 (file)
@@ -138,9 +138,9 @@ public class GQueryWidgetsTestGwt extends GWTTestCase {
     final Button b1 = new Button("Button click");
     RootPanel.get().add(b1);
     GQuery g = $(b1);
-    assertTrue($(b1).isVisible());
+    assertTrue(g.isVisible());
     g.hide();
-    assertFalse($(b1).isVisible());
+    assertFalse(g.isVisible());
     b1.removeFromParent();
   }