diff options
author | Manolo Carrasco <manolo@apache.org> | 2011-01-16 10:16:01 +0000 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2011-01-16 10:16:01 +0000 |
commit | 90a09550edf798074cae57e6e33b0b5a7a93fb69 (patch) | |
tree | 3f129ebc209c1c4e51eaa17581f6e7033d0e9ae6 /gwtquery-core/src/test | |
parent | 233d3e71c31ceadf60498fd0cb44a630fcd5f96e (diff) | |
download | gwtquery-90a09550edf798074cae57e6e33b0b5a7a93fb69.tar.gz gwtquery-90a09550edf798074cae57e6e33b0b5a7a93fb69.zip |
adding Lazy interface for Widgets plugin. Fixing a test
Diffstat (limited to 'gwtquery-core/src/test')
-rw-r--r-- | gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java index e287f294..061f8277 100644 --- a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java +++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java @@ -303,18 +303,18 @@ public class GQueryCoreTest extends GWTTestCase { public void testIssue23() { $(e).html("<table><tr><td><input type='radio' name='n' value='v1'>1</input><input type='radio' name='n' value='v2' checked='checked'>2</input></td><td><button>Click</button></tr><td></table>"); $("button").click(new Function() { - public boolean f(Event e) { - $("table > tbody > tr > td > input:checked").each(new Function() { + public boolean f(Event ev) { + done = 0; + $("table > tbody > tr > td > input:checked", e).each(new Function() { public void f(Element e) { done++; } }); + assertEquals(1, done); return true; } }); - done = 0; $("button").click(); - assertEquals(1,done); } public void testModifyMethods() { |