diff options
Diffstat (limited to 'gwtquery-core')
-rw-r--r-- | gwtquery-core/src/test/java/com/google/gwt/query/client/GQuerySelectorsTest.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQuerySelectorsTest.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQuerySelectorsTest.java index 86428746..9cba7b22 100644 --- a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQuerySelectorsTest.java +++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQuerySelectorsTest.java @@ -40,6 +40,8 @@ import com.google.gwt.user.client.ui.RootPanel; * Test for selectors */ public class GQuerySelectorsTest extends GWTTestCase { + + boolean runSlow = false; protected interface AllSelectors extends Selectors { @Selector("h1[id]:contains(Selectors)") @@ -179,7 +181,7 @@ public class GQuerySelectorsTest extends GWTTestCase { public void testJQueryPseudoselectors() { $(e).html("<table border=1 id=idtest width=440><tr><td width=50%>A Text</td><td width=50%><a></a><p id=a></p><p id=b style='display: none'><span id=c>s</span></p></td></tr></table>"); assertEquals(9, $("* ", e).size()); - assertEquals(2, $("span:hidden, p:hidden ", e).size()); + assertEquals(1, $("p:hidden ", e).size()); assertEquals(2, $("td:visible ", e).size()); $(e).html("<input type='checkbox' id='cb' name='cb' value='1' /><input type='radio' id='cb' name='cb' value='1' />"); assertEquals(1, $("input:checkbox ", e).size()); @@ -262,6 +264,7 @@ public class GQuerySelectorsTest extends GWTTestCase { } public void testSelectorEngineDomAssistant() { + if (!runSlow) return; // This test runs very slow in chrome SelectorEngineImpl selEng = new SelectorEngineJS(); executeSelectorEngineTests(selEng); @@ -280,6 +283,7 @@ public class GQuerySelectorsTest extends GWTTestCase { } public void testSelectorEngineSizzleGwt() { + if (!runSlow) return; SelectorEngineImpl selEng = new SelectorEngineSizzleGwt(); executeSelectorEngineTests(selEng); } |