test(browser): check wait_for_change's detector over generated frames
The calibration, noise-floor and threshold logic of page.wait_for_change was inline with its sleeps and screenshots, so only a real browser drawing canvases for many seconds reached it. pixels.ChangeDetector now holds that logic as a pure state machine fed block frames, and wait_for_change feeds it captures and sleeps for it. The behavior is unchanged. browser_change_test generates regions with random noise, blocks that flicker from the first frame, blocks that start moving while the floor is measured, and a change of some fraction from a frame after calibration, over generated calibration and floor lengths and tolerances. It checks the frame and fraction a change is seen at, the floor, and the timeout message against counts worked out from the scene. Deleted from browser_test.py (about 50 s of canvas sleeps), with the test that fails for each: - wait_for_change_waits_through_random_noise_for_the_bus, ..._ordered_dither_for_the_bus (noise taken for change): a_change_counts_only_above_the_noise_floor. - wait_for_change_counts_min_change_above_the_noise_floor (min_change not added to the floor): the same property. - wait_for_change_holds_to_min_change_and_says_what_it_saw: half_the_region_holds_to_min_change, the same case worked by hand. wait_for_change_sees_a_small_change_in_a_quiet_region stays as the one real-browser wiring check. Real Chrome screenshot noise is no longer measured; the generated noise models stand in for it. Planted: the floor not added to min_change, no tolerance, calibration noise not learned, one floor frame short. Each fails the property.