diff options
author | Julien Dramaix <julien.dramaix@gmail.com> | 2013-12-01 11:44:30 -0800 |
---|---|---|
committer | Julien Dramaix <julien.dramaix@gmail.com> | 2013-12-01 11:44:30 -0800 |
commit | 1b7c780d6c6be7ca00006466cf6cd4a482ae77a0 (patch) | |
tree | 21be03862b6c78382c7f1682dac51f2eb5f93df9 | |
parent | e35e7fe6239b5a7cfb989ce1debb0b7594ec9cb2 (diff) | |
parent | 20a9a202e9e79bb72807ccda0d0526e2200fcf72 (diff) | |
download | gwtquery-1b7c780d6c6be7ca00006466cf6cd4a482ae77a0.tar.gz gwtquery-1b7c780d6c6be7ca00006466cf6cd4a482ae77a0.zip |
Merge pull request #241 from gwtquery/jd_add_test_issue216
add test for issue #216
-rw-r--r-- | gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTestGwt.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTestGwt.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTestGwt.java index c86b67e4..50f99d6f 100644 --- a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTestGwt.java +++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTestGwt.java @@ -2049,4 +2049,18 @@ public class GQueryCoreTestGwt extends GWTTestCase { assertEquals(ulParentsNumber + 2, result.size()); } + // issue #216 : https://github.com/gwtquery/gwtquery/issues/216 + public void testDataAsInteger() { + $(e).html("<div id='target'></div>"); + + GQuery target = $("#target", e); + + $("#target", e).data("intValue", new Integer(1)); + + Integer value = $("#target", e).data("intValue", Integer.class); + + assertEquals(1, value.intValue()); + + } + } |