Conversation
Co-authored-by: jrpool <3364797+jrpool@users.noreply.github.com>
Co-authored-by: jrpool <3364797+jrpool@users.noreply.github.com>
Co-authored-by: jrpool <3364797+jrpool@users.noreply.github.com>
|
From Claude: Requested changes
|
|
I'm thinking it'd probably be best if you go ahead and submit PRs against .js files and I'll just automatically transfer them to the .ts and rebuild. |
Could you explain why that is better? To me, it makes sense to submit PRs per the new |
The test of the
motionrule of thetestarorule engine delivers false positive results if the tested page containsdetailselements that are closed, because the test compares an image of the page as it exists with the catalog image, which was made only after alldetailselements were forced open.This change corrects that error by opening all closed
detailselements before themotionimage is made.The same test also reports the fraction of all pixels that changed, but the denominator is the pixel count of the entire page. A typical page has a background of uniform color that is covered only fractionally by foreground content. If all of that content disappears or is replaced with other content in situ, the perceived change is probably about 100%, but the reported change may be about 2%. Pending a more sophisticated approximation of perceived change, the revised test reports the count of changed pixels instead of the fraction, and the
ordinalSeveritycomputation is now based on that count.Since the
motiontest now opens closeddetailselements, it is reclassified as contaminating intests/testaro.jsand is moved to be adjacent to other contaminating tests.Some
.tsfiles are observed to have appeared, but instructions inCONTRIBUTING.mddo not yet advise on what to do about them, so, to avoid doing anything wrong, I have not touched those files.