@@ -61,15 +61,18 @@ function getTestListParam(urlParams, key) {
6161if ( typeof ( URLSearchParams ) !== "undefined" ) {
6262 const urlParameters = new URLSearchParams ( window . location . search ) ;
6363 shouldReport = urlParameters . has ( 'report' ) && urlParameters . get ( 'report' ) . toLowerCase ( ) == 'true' ;
64- globalThis . startDelay = getIntParam ( urlParameters , "startDelay" ) ;
64+ if ( urlParameters . has ( "startDelay" ) )
65+ globalThis . startDelay = getIntParam ( urlParameters , "startDelay" ) ;
6566 if ( shouldReport && ! globalThis . startDelay )
6667 globalThis . startDelay = 4000 ;
6768 if ( urlParameters . has ( "tag" ) )
6869 globalThis . testList = getTestListParam ( urlParameters , "tag" ) ;
6970 if ( urlParameters . has ( "test" ) )
7071 globalThis . testList = getTestListParam ( urlParameters , "test" ) ;
71- globalThis . testIterationCount = getIntParam ( urlParameters , "iterationCount" ) ;
72- globalThis . testWorstCaseCount = getIntParam ( urlParameters , "worstCaseCount" ) ;
72+ if ( urlParameters . has ( "iterationCount" ) )
73+ globalThis . testIterationCount = getIntParam ( urlParameters , "iterationCount" ) ;
74+ if ( urlParameters . has ( "worstCaseCount" ) )
75+ globalThis . testWorstCaseCount = getIntParam ( urlParameters , "worstCaseCount" ) ;
7376}
7477
7578// Used for the promise representing the current benchmark run.
0 commit comments