Name Description Size Coverage
capture-pair.sh 12628 -
capture.js Paste this at the head of a scratch browser-chrome test or a `firefox-probe.py --realm chrome --async` body, then call `capture(name, element)` once per shot. Do not load it at runtime: the scratch test must not carry a path to this file. `shots.label` distinguishes the two runs and `shots.dir` overrides the output directory; pass them with `--setpref` to mochitest, or to firefox-probe.py when this is pasted into a probe. 4446 -
zoom-pair.py Crop the same rect from a before and an after capture, enlarge both without smoothing, and put them side by side, before on the left. Run under `./mach python --virtualenv wpt`, the mach virtualenv with Pillow: ./mach python --virtualenv wpt zoom-pair.py before.png after.png zoom.png \ --rect X,Y,W,H [--dpr 2] [--offset X,Y] [--scale 8] [--gap 8] --rect, --dpr and --offset mean what they mean for ./mach theme pixel-diff: CSS px from the PNG's own top-left corner, scaled to device pixels, shifted by the page's mozInnerScreenX/Y for a screen grab. The rect is clipped to the smaller of the two images, with a note on stderr. --scale multiplies each device pixel (default 8) and --gap puts that many output pixels of magenta between the halves, a color no theme surface uses, so the gap cannot read as a line. It prints "wrote OUT: WxH px" and exits 2 on an error. 3916 -