Commit 7463d5b 1 parent f5b0fdb commit 7463d5b Copy full SHA for 7463d5b
File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export class WPTRunner extends EventEmitter {
66
66
this . #folderPath = join ( testPath , folder )
67
67
this . #files. push ( ...WPTRunner . walk (
68
68
this . #folderPath,
69
- ( file ) => file . endsWith ( '.js ' )
69
+ ( file ) => file . endsWith ( '.any.js' ) && ! file . includes ( '.tentative. ')
70
70
) )
71
71
this . #status = JSON . parse ( readFileSync ( join ( statusPath , `${ folder } .status.json` ) ) )
72
72
this . #url = url
@@ -112,14 +112,18 @@ export class WPTRunner extends EventEmitter {
112
112
const code = test . includes ( '.sub.' )
113
113
? handlePipes ( readFileSync ( test , 'utf-8' ) , this . #url)
114
114
: readFileSync ( test , 'utf-8' )
115
+ if ( code . includes ( 'importScripts(' ) ) {
116
+ total -= 1
117
+ return undefined
118
+ }
115
119
const meta = this . resolveMeta ( code , test )
116
120
117
121
if ( meta . variant . length ) {
118
122
total += meta . variant . length - 1
119
123
}
120
124
121
125
return [ test , code , meta ]
122
- } )
126
+ } ) . filter ( Boolean )
123
127
124
128
for ( const [ test , code , meta ] of files ) {
125
129
if ( this . #status[ basename ( test ) ] ?. skip ) {
You can’t perform that action at this time.
0 commit comments