aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2010-07-24 01:57:08 +0000
committerManolo Carrasco <manolo@apache.org>2010-07-24 01:57:08 +0000
commitd3184ec01beeeffacf8aa44c7f6adeb08da04305 (patch)
tree7112f525708dc45946c691b7506a8ff1225322fa
parent82751e57c8811e13ec93d69741d555289856fd52 (diff)
downloadgwtquery-d3184ec01beeeffacf8aa44c7f6adeb08da04305.tar.gz
gwtquery-d3184ec01beeeffacf8aa44c7f6adeb08da04305.zip
increase schedule time to put html stuff in the iframes because benchmark deployed in svn takes a long to load the iframes
-rw-r--r--samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java b/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java
index 64a5910a..b79d2cc9 100644
--- a/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java
+++ b/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java
@@ -45,6 +45,7 @@ import com.google.gwt.user.client.ui.RootPanel;
* min=200 Minimum time running each selector
* track=false Don't draw the horse race
* ask=false Run default benchmarks, don't ask the user.
+ * wait=6000 Number of milliseconds to wait to insert the test html stuff in the iframes
*
*/
public class GwtQueryBenchModule implements EntryPoint {
@@ -141,6 +142,7 @@ public class GwtQueryBenchModule implements EntryPoint {
private boolean useTrack = true;
private boolean ask = true;
+ private int waitToLoad = 6000;
/**
* List of available benchmarks.
@@ -290,6 +292,11 @@ public class GwtQueryBenchModule implements EntryPoint {
if (par != null && "false".equals(par)) {
ask = false;
}
+ par = Window.Location.getParameter("wait");
+ if (par != null) {
+ waitToLoad = Integer.parseInt(par);
+ }
+
initSelects(benchmarks);
initIFrames();
@@ -336,7 +343,7 @@ public class GwtQueryBenchModule implements EntryPoint {
writeTestContent($(".ibench").contents().find("body").get(0));
gwtiframe = $(".ibench").eq(0).contents().get(0);
}
- }.schedule(1000);
+ }.schedule(waitToLoad);
}