bi-13 step 03 — The break-and-observe loop
Goal
Prove you have connected spec → test → implementation by deliberately breaking the chain.
Tasks
- Pick a behaviour you understand well.
- Read the spec text that defines it.
- Locate the WPT that tests it.
- Run the test; confirm it passes.
- Break the Blink implementation deliberately. Observe the exact failure.
- Restore. Confirm green.
- Write a
testharness.jstest for the parsing lab's Case B. Run it against unpatched Chromium first — a test that passes before your change is not a test. - Reason about whether your test should pass in other engines, and why.
Done when
- Full loop completed with the failure observed
-
A new
testharness.jstest written, verified to fail when the behaviour is wrong - You can name the layer any given bug should be tested at, and defend it