Skip to content

Commit c9c4f3d

Browse files
authored
support startAutomatically (#201)
Set startDelay to 100ms if we have a "?startAutomatically" URL param – to be more consistent with the Speedometer harness.
1 parent 0179184 commit c9c4f3d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

params.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,12 @@ class Params {
7575
this.customPostIterationCode = this._parseStringParam(sourceParams, "customPostIterationCode");
7676

7777
this.startDelay = this._parseIntParam(sourceParams, "startDelay", 0);
78-
if (this.report && !this.startDelay)
79-
this.startDelay = 4000;
78+
if (!this.startDelay) {
79+
if (this.report)
80+
this.startDelay = 4000;
81+
if (this.startAutomatically)
82+
this.startDelay = 100;
83+
}
8084

8185
for (const paramKey of ["tag", "tags", "test", "tests"]) {
8286
this.testList = this._parseTestListParam(sourceParams, paramKey);

0 commit comments

Comments
 (0)