summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sca-java-2.x/trunk/samples/store/src/test/java/store/StoreTestCase.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/sca-java-2.x/trunk/samples/store/src/test/java/store/StoreTestCase.java b/sca-java-2.x/trunk/samples/store/src/test/java/store/StoreTestCase.java
index 900bc3f582..883aaa76f6 100644
--- a/sca-java-2.x/trunk/samples/store/src/test/java/store/StoreTestCase.java
+++ b/sca-java-2.x/trunk/samples/store/src/test/java/store/StoreTestCase.java
@@ -89,20 +89,23 @@ public class StoreTestCase {
}
@Test
- @Ignore
public void testStoreWidget() throws FailingHttpStatusCodeException, MalformedURLException, IOException {
WebClient webClient = new WebClient(BrowserVersion.FIREFOX_3);
webClient.setRedirectEnabled(true);
webClient.setThrowExceptionOnScriptError(false);
- webClient.waitForBackgroundJavaScript(50000);
- webClient.waitForBackgroundJavaScriptStartingBefore(50000);
+ //webClient.waitForBackgroundJavaScript(100000);
+ //webClient.waitForBackgroundJavaScriptStartingBefore(100000);
webClient.setAjaxController(new NicelyResynchronizingAjaxController());
HtmlPage page = (HtmlPage) webClient.getPage("http://localhost:8080/store/store.html");
HtmlForm form = (HtmlForm) page.getFormByName("catalogForm");
-
+ try {
+ Thread.sleep(1000);
+ } catch (InterruptedException e) {
+ }
+
HtmlCheckBoxInput catalogItems = (HtmlCheckBoxInput) form.getInputByName("items");
System.out.println(">>>" + catalogItems.getAttribute("value"));