aboutsummaryrefslogtreecommitdiffstats
path: root/gwtquery-core/src/test
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2011-01-16 10:16:01 +0000
committerManolo Carrasco <manolo@apache.org>2011-01-16 10:16:01 +0000
commit90a09550edf798074cae57e6e33b0b5a7a93fb69 (patch)
tree3f129ebc209c1c4e51eaa17581f6e7033d0e9ae6 /gwtquery-core/src/test
parent233d3e71c31ceadf60498fd0cb44a630fcd5f96e (diff)
downloadgwtquery-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.java8
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() {