* Load a resource in test/fixtures/wpt specified with a URL * @param {string} from the path of the file loading this resource, * relative to the WPT folder. * @param {string} url the url of the resource being loaded. * @returns {string}
(from, url)
| 202 | * @returns {string} |
| 203 | */ |
| 204 | read(from, url) { |
| 205 | const file = this.toRealFilePath(from, url); |
| 206 | return fs.readFileSync(file, 'utf8'); |
| 207 | } |
| 208 | |
| 209 | /** |
| 210 | * Load a resource in test/fixtures/wpt specified with a URL |