@@ -37,7 +37,7 @@ globalThis.testIterationCountMap ??= new Map();
37
37
globalThis . testWorstCaseCount ??= undefined ;
38
38
globalThis . testWorstCaseCountMap ??= new Map ( ) ;
39
39
globalThis . dumpJSONResults ??= false ;
40
- globalThis . customTestList ??= [ ] ;
40
+ globalThis . testList ??= undefined ;
41
41
globalThis . startDelay ??= undefined ;
42
42
43
43
let shouldReport = false ;
@@ -53,8 +53,8 @@ function getIntParam(urlParams, key) {
53
53
}
54
54
55
55
function getTestListParam ( urlParams , key ) {
56
- if ( globalThis . customTestList . length )
57
- throw new Error ( `Overriding previous customTestList =${ globalThis . customTestList . join ( ) } with ${ key } url-parameter.` ) ;
56
+ if ( globalThis . testList ? .length )
57
+ throw new Error ( `Overriding previous testList =${ globalThis . testList . join ( ) } with ${ key } url-parameter.` ) ;
58
58
return urlParams . getAll ( key ) ;
59
59
}
60
60
@@ -65,9 +65,9 @@ if (typeof(URLSearchParams) !== "undefined") {
65
65
if ( shouldReport && ! globalThis . startDelay )
66
66
globalThis . startDelay = 4000 ;
67
67
if ( urlParameters . has ( "tag" ) )
68
- customTestList = getTestListParam ( urlParameters , "tag" ) ;
68
+ globalThis . testList = getTestListParam ( urlParameters , "tag" ) ;
69
69
if ( urlParameters . has ( "test" ) )
70
- customTestList = getTestListParam ( urlParameters , "test" ) ;
70
+ globalThis . testList = getTestListParam ( urlParameters , "test" ) ;
71
71
globalThis . testIterationCount = getIntParam ( urlParameters , "iterationCount" ) ;
72
72
globalThis . testWorstCaseCount = getIntParam ( urlParameters , "worstCaseCount" ) ;
73
73
}
@@ -93,8 +93,8 @@ function displayCategoryScores() {
93
93
function getIterationCount ( plan ) {
94
94
if ( testIterationCountMap . has ( plan . name ) )
95
95
return testIterationCountMap . get ( plan . name ) ;
96
- if ( testIterationCount )
97
- return testIterationCount ;
96
+ if ( globalThis . testIterationCount )
97
+ return globalThis . testIterationCount ;
98
98
if ( plan . iterations )
99
99
return plan . iterations ;
100
100
return defaultIterationCount ;
@@ -103,8 +103,8 @@ function getIterationCount(plan) {
103
103
function getWorstCaseCount ( plan ) {
104
104
if ( testWorstCaseCountMap . has ( plan . name ) )
105
105
return testWorstCaseCountMap . get ( plan . name ) ;
106
- if ( testWorstCaseCount )
107
- return testWorstCaseCount ;
106
+ if ( globalThis . testWorstCaseCount )
107
+ return globalThis . testWorstCaseCount ;
108
108
if ( plan . worstCaseCount )
109
109
return plan . worstCaseCount ;
110
110
return defaultWorstCaseCount ;
@@ -2370,10 +2370,8 @@ const defaultDisabledTags = [];
2370
2370
if ( ! isInBrowser )
2371
2371
defaultDisabledTags . push ( "WorkerTests" ) ;
2372
2372
2373
- if ( typeof testList !== "undefined" ) {
2374
- processTestList ( testList ) ;
2375
- } else if ( customTestList . length ) {
2376
- processTestList ( customTestList ) ;
2373
+ if ( globalThis . testList ?. length ) {
2374
+ processTestList ( globalThis . testList ) ;
2377
2375
} else {
2378
2376
globalThis . JetStream . enableBenchmarksByTag ( "Default" , defaultDisabledTags )
2379
2377
}
0 commit comments