* @param {string} mod * @param {string} filename * @param {StatusRule[]} rules * @returns {ReturnType []}
(mod, filename, rules)
| 348 | * @returns {ReturnType<WPTTestSpec['getMeta']>[]} |
| 349 | */ |
| 350 | static from(mod, filename, rules) { |
| 351 | const spec = new WPTTestSpec(mod, filename, rules); |
| 352 | const meta = spec.getMeta(); |
| 353 | return meta.variant?.map((variant) => new WPTTestSpec(mod, filename, rules, variant)) || [spec]; |
| 354 | } |
| 355 | |
| 356 | /** |
| 357 | * Check if a subtest should be skipped by name. |