@@ -474,7 +474,6 @@ class WPTRunner {
474
474
}
475
475
476
476
process . on ( 'exit' , ( ) => {
477
- const total = this . specMap . size ;
478
477
if ( this . inProgress . size > 0 ) {
479
478
for ( const filename of this . inProgress ) {
480
479
this . fail ( filename , { name : 'Unknown' } , kIncomplete ) ;
@@ -506,7 +505,9 @@ class WPTRunner {
506
505
}
507
506
508
507
const unexpectedPasses = [ ] ;
509
- for ( const [ key , specMap ] of this . specMap ) {
508
+ for ( const specMap of queue ) {
509
+ const key = specMap . filename ;
510
+
510
511
// File has no expected failures
511
512
if ( ! specMap . failedTests . length ) {
512
513
continue ;
@@ -529,7 +530,8 @@ class WPTRunner {
529
530
}
530
531
}
531
532
532
- const ran = total - skipped ;
533
+ const ran = queue . length ;
534
+ const total = ran + skipped ;
533
535
const passed = ran - expectedFailures - failures . length ;
534
536
console . log ( `Ran ${ ran } /${ total } tests, ${ skipped } skipped,` ,
535
537
`${ passed } passed, ${ expectedFailures } expected failures,` ,
0 commit comments