aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdolfo Panizo <adolfo.panizo@gmail.com>2014-12-26 18:48:54 +0100
committerAdolfo Panizo <adolfo.panizo@gmail.com>2014-12-26 18:48:54 +0100
commit447ddbc2d7b69a56540d8b1116913d91b04ec431 (patch)
tree70ddbe5b24c0cfe60763f1a962b1b7b11fa34316
parent617443d1157cc3769db6d96bf7149278b51768b4 (diff)
downloadgwtquery-447ddbc2d7b69a56540d8b1116913d91b04ec431.tar.gz
gwtquery-447ddbc2d7b69a56540d8b1116913d91b04ec431.zip
Using isVisible for widget selector test. Also removingFromParent
Button.
-rw-r--r--gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryWidgetsTestGwt.java7
1 files 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();
}
}