diff options
author | jdramaix <julien.dramaix@gmail.com> | 2013-11-29 12:30:01 +0100 |
---|---|---|
committer | jdramaix <julien.dramaix@gmail.com> | 2013-11-29 12:30:01 +0100 |
commit | c02a0acd4893f04d89b472aa571cea3b571af84a (patch) | |
tree | c55be407c02e75a8c47439c780f57b35555fa147 | |
parent | 9df2f18c2b655db88abc31787ae7903f01f71060 (diff) | |
download | gwtquery-c02a0acd4893f04d89b472aa571cea3b571af84a.tar.gz gwtquery-c02a0acd4893f04d89b472aa571cea3b571af84a.zip |
test issue 226
-rw-r--r-- | gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryEventsTestGwt.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryEventsTestGwt.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryEventsTestGwt.java index 6795a35d..e3ada526 100644 --- a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryEventsTestGwt.java +++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryEventsTestGwt.java @@ -1595,4 +1595,12 @@ public class GQueryEventsTestGwt extends GWTTestCase { assertEquals(1, handler.invokationCounter); } + + public void testIssue226() { + $(e).html("<div id='target'>"); + GQuery target = $("#target", e); + + // this should not throw a NPE + target.undelegate("li", "click"); + } } |