diff options
author | Adolfo Panizo <adolfo.panizo@gmail.com> | 2014-12-26 21:32:24 +0100 |
---|---|---|
committer | Adolfo Panizo <adolfo.panizo@gmail.com> | 2014-12-26 21:32:24 +0100 |
commit | 3ef29d689bd6e4377b258ced12c62928d73e674a (patch) | |
tree | 005430bb475ca216c04db031c02bdffa5edf0628 | |
parent | 84909924a3af81010bc6c6df933b5c44f125c950 (diff) | |
download | gwtquery-3ef29d689bd6e4377b258ced12c62928d73e674a.tar.gz gwtquery-3ef29d689bd6e4377b258ced12c62928d73e674a.zip |
Using GQuery var instance instead of evaluating selector multiple
times.
-rw-r--r-- | gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryWidgetsTestGwt.java | 4 |
1 files changed, 2 insertions, 2 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 66e1aab5..801992f9 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 @@ -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(); } |