<when-type-assignable\r
class="com.google.gwt.query.client.impl.SelectorEngineImpl"/>\r
<when-property-is name="user.agent" value="ie6"/>\r
+ <when-property-is name="user.agent" value="ie8"/>\r
</replace-with>\r
\r
<replace-with class="com.google.gwt.query.client.impl.SelectorEngineXPath">\r
<when-type-assignable\r
class="com.google.gwt.query.client.impl.SelectorEngineImpl"/>\r
<when-property-is name="selectorCapability" value="native"/>\r
+ <none>\r
+ <when-property-is name="user.agent" value="ie8"/>\r
+ </none>\r
</replace-with>\r
\r
<entry-point class='com.google.gwt.query.client.css.CSS'/>\r
import com.google.gwt.dom.client.Element;
import com.google.gwt.junit.client.GWTTestCase;
+import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootPanel;
assertEquals(1, $(".whatEver").size());
assertEquals(0, $(".whatever").size());
}
+
+ int done = 0;
+ 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 void f(Element e) {
+ done ++;
+ }
+ });
+ return true;
+ }
+ });
+ done = 0;
+ $("button").click();
+ assertEquals(1,done);
+ }
+
}