(from, url)
| 183 | } |
| 184 | |
| 185 | toRealFilePath(from, url) { |
| 186 | // We need to patch this to load the WebIDL parser |
| 187 | url = url.replace( |
| 188 | '/resources/WebIDLParser.js', |
| 189 | '/resources/webidl2/lib/webidl2.js', |
| 190 | ); |
| 191 | const base = path.dirname(from); |
| 192 | return url.startsWith('/') ? |
| 193 | fixtures.path('wpt', url) : |
| 194 | fixtures.path('wpt', base, url); |
| 195 | } |
| 196 | |
| 197 | /** |
| 198 | * Load a resource in test/fixtures/wpt specified with a URL |
no test coverage detected