Objective: Why the same test must run in many browsers and sizes — and how to read the grid you've been using since B-06.
⏱ ≈4 min full lesson · Converted from the B-14 module deck · English edition — Español · العربية · বাংলা in translation
In ~4 minutes: why the same test must run in many browsers and sizes — and how to read the grid you've been using since B-06.
One screen is an audience of one: Visitors arrive on Chrome laptops, iPhones on Safari, Firefox desktops, kitchen tablets. Each renders the same page slightly differently. A site tested on YOUR machine is tested for an audience of one.
Two axes, one matrix: Two different axes: CROSS-BROWSER = different engines (Chromium, Firefox, WebKit/Safari). RESPONSIVE = different viewport shapes (desktop 1280×800, iPhone 393×852, tablet). TestGen combines them into THE MATRIX: browsers × devices, every test in every cell.
What a device preset really is: A device preset is a bundle of honest facts: size, pixel density, touch, and the user-agent the site uses to decide what to serve. (Quirk in plain sight: Firefox doesn't support isMobile — the runner deletes the flag for Firefox projects.) Code: "iPhone 15": viewport 393×852, scale 3, touch, | userAgent “…iPhone; CPU iPhone OS 17_5… Safari/604.1"
Reading the matrix: Failure in one COLUMN (one browser, all devices) → engine-specific. One device ROW (all browsers) → width/layout behavior. ONE CELL → the intersection. EVERYWHERE → the site or the check. Coordinates turn “fails on mobile Safari” into a location.
Emulation ≠ the device: An emulation is viewport-perfect but still not a physical phone — real Safari quirks can differ. Emulate for COVERAGE; spot-check on real hardware for CERTAINTY. (This Academy's makers call the owner's real iPhone the proof surface — same rule.)
Plug & chug: find your breakpoints: Open your site on desktop. Drag the window slowly narrower and note the widths where layout rearranges (nav collapses, columns stack). Those BREAKPOINTS are your most valuable test widths — which is why presets are phones and tablets, not random numbers.
Many worlds, handled. Final Basic stop: unit testing — the smallest tests of all.