(id, title, pass, measured)
| 105 | const modelRequests = []; |
| 106 | const images = new Map(); |
| 107 | function check(id, title, pass, measured) { |
| 108 | results.push({ id, title, pass: Boolean(pass), measured }); |
| 109 | console.log(`${pass ? 'PASS' : 'FAIL'} ${id} ${title} ${JSON.stringify(measured)}`); |
| 110 | } |
| 111 | async function shot(page, id, label, proves, options = {}) { |
| 112 | await mkdir(join(OUT, id), { recursive: true }); |
| 113 | const list = images.get(id) ?? []; |