(name)
| 397 | * kollidiert, eine Seite ist, die kollidiert. |
| 398 | */ |
| 399 | const readability = async (name) => { |
| 400 | const top = await measureReadability(page); |
| 401 | const scrolled = await scrollRegionsToEnd(page); |
| 402 | await page.waitForTimeout(200); |
| 403 | const bottom = await measureReadability(page); |
| 404 | await resetScroll(page); |
| 405 | extras.readability.push({ |
| 406 | name, |
| 407 | scrolledRegions: scrolled.length, |
| 408 | top: { candidates: top.candidates, overlaps: top.overlaps, clipped: top.clipped, layers: top.layers }, |
| 409 | bottom: { candidates: bottom.candidates, overlaps: bottom.overlaps, clipped: bottom.clipped }, |
| 410 | }); |
| 411 | report.overlapViolations += top.overlaps.length + bottom.overlaps.length; |
| 412 | report.clippingViolations += top.clipped.length + bottom.clipped.length; |
| 413 | }; |
| 414 | |
| 415 | // ------------------------------------------- 6a. Die Menuezeile |
| 416 | await load(); |
no test coverage detected