(name)
| 661 | }; |
| 662 | |
| 663 | const readability = async (name) => { |
| 664 | const top = await measureReadability(page); |
| 665 | const scrolled = await scrollRegionsToEnd(page); |
| 666 | await page.waitForTimeout(200); |
| 667 | const bottom = await measureReadability(page); |
| 668 | await resetScroll(page); |
| 669 | extras.readability.push({ |
| 670 | name, |
| 671 | scrolledRegions: scrolled.length, |
| 672 | top: { candidates: top.candidates, overlaps: top.overlaps, clipped: top.clipped, layers: top.layers }, |
| 673 | bottom: { candidates: bottom.candidates, overlaps: bottom.overlaps, clipped: bottom.clipped }, |
| 674 | }); |
| 675 | report.overlapViolations += top.overlaps.length + bottom.overlaps.length; |
| 676 | report.clippingViolations += top.clipped.length + bottom.clipped.length; |
| 677 | }; |
| 678 | |
| 679 | // ------------------------------------------- 6a. Die Gestalt der Zeile |
| 680 | await load(); |
no test coverage detected