]> source.dussan.org Git - gwtquery.git/commitdiff
increase schedule time to put html stuff in the iframes because benchmark deployed...
authorManolo Carrasco <manolo@apache.org>
Sat, 24 Jul 2010 01:57:08 +0000 (01:57 +0000)
committerManolo Carrasco <manolo@apache.org>
Sat, 24 Jul 2010 01:57:08 +0000 (01:57 +0000)
samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java

index 64a5910a6991ef2504c1414c6ebf41ead85decab..b79d2cc939e2f4eeea3dcfc3825f6538ae58f541 100644 (file)
@@ -45,6 +45,7 @@ import com.google.gwt.user.client.ui.RootPanel;
  *    min=200         Minimum time running each selector\r
  *    track=false     Don't draw the horse race\r
  *    ask=false       Run default benchmarks, don't ask the user.\r
+ *    wait=6000       Number of milliseconds to wait to insert the test html stuff in the iframes\r
  *    \r
  */\r
 public class GwtQueryBenchModule implements EntryPoint {\r
@@ -141,6 +142,7 @@ public class GwtQueryBenchModule implements EntryPoint {
   \r
   private boolean useTrack = true;\r
   private boolean ask = true;\r
+  private int waitToLoad = 6000;\r
 \r
   /**\r
    * List of available benchmarks. \r
@@ -290,6 +292,11 @@ public class GwtQueryBenchModule implements EntryPoint {
     if (par != null && "false".equals(par)) {\r
       ask = false;\r
     }\r
+    par = Window.Location.getParameter("wait"); \r
+    if (par != null) {\r
+      waitToLoad = Integer.parseInt(par);\r
+    }\r
+    \r
     \r
     initSelects(benchmarks);\r
     initIFrames();\r
@@ -336,7 +343,7 @@ public class GwtQueryBenchModule implements EntryPoint {
         writeTestContent($(".ibench").contents().find("body").get(0));\r
         gwtiframe = $(".ibench").eq(0).contents().get(0);\r
       }\r
-    }.schedule(1000);\r
+    }.schedule(waitToLoad);\r
   }\r
 \r
 \r