zarzet
31999a15c7
test(player): drive AutoMix transport and haptics with fake time
...
The AutoMix tests slept about 17 s of wall time waiting for fades, tempo
recovery and "nothing happens" windows, and the haptics tests 1.15 s.
fake_async is not a direct dependency, so the analyzer rejects importing
it. Haptics tests run as testWidgets on the binding's FakeAsync clock,
which also drives the PlaybackState position extrapolation.
The AutoMix player shares process-wide runtime state (the listening
recorder and personalization write chains), so a FakeAsync zone that
stops after one test would strand later tests. test/support/virtual_time
adds a zone with virtual timers and real microtasks instead: setUp builds
the player in that zone, and fakeTimeTest runs a body with its timers
fired in due order, skipping idle time. Pending timers continue on real
time afterwards.
AutoMix reads its fade and readiness clocks through autoMixStopwatch,
which defaults to Stopwatch.new; tests point it, and the native fake's
deck clocks, at the virtual clock. Test bodies and assertions are
unchanged.
2026-10-19 05:10:50 +07:00
..
2026-10-19 01:06:12 +07:00
2026-10-02 17:03:07 +07:00
2026-10-08 15:22:45 +07:00
2026-10-06 23:25:39 +07:00
2026-10-06 22:00:46 +07:00
2026-10-07 04:19:14 +07:00
2026-10-19 00:59:24 +07:00
2026-10-19 00:59:24 +07:00
2026-10-19 00:59:24 +07:00
2026-10-19 00:59:24 +07:00
2026-10-12 12:11:06 +07:00
2026-10-17 16:18:32 +07:00
2026-10-12 12:11:27 +07:00
2026-10-06 23:28:01 +07:00
2026-10-17 16:18:38 +07:00
2026-10-04 03:55:24 +07:00
2026-10-18 22:12:29 +07:00
2026-10-19 00:15:48 +07:00
2026-10-02 14:54:47 +07:00
2026-10-19 00:37:42 +07:00
2026-10-19 00:59:24 +07:00
2026-10-07 03:03:44 +07:00
2026-10-10 02:16:22 +07:00
2026-10-19 00:48:31 +07:00
2026-10-06 22:00:15 +07:00
2026-10-06 21:59:53 +07:00
2026-10-05 17:53:19 +07:00
2026-10-06 23:28:40 +07:00
2026-10-10 16:59:06 +07:00
2026-10-19 00:37:42 +07:00
2026-10-03 02:14:11 +07:00
2026-10-08 20:30:24 +07:00
2026-09-28 11:45:10 +07:00
2026-10-19 00:15:48 +07:00
2026-10-05 02:31:01 +07:00
2026-10-19 00:15:48 +07:00
2026-10-19 00:15:48 +07:00
2026-10-12 12:11:06 +07:00
2026-10-06 21:59:53 +07:00
2026-10-09 18:07:49 +07:00
2026-10-09 18:07:49 +07:00
2026-10-12 12:11:06 +07:00
2026-10-06 13:09:26 +07:00
2026-10-08 17:25:11 +07:00
2026-09-30 20:58:18 +07:00
2026-10-19 00:15:48 +07:00
2026-10-18 00:47:21 +07:00
2026-10-08 20:30:24 +07:00
2026-10-05 03:28:26 +07:00
2026-10-06 00:04:14 +07:00
2026-10-06 23:28:20 +07:00
2026-10-19 00:37:42 +07:00
2026-10-06 13:09:26 +07:00
2026-10-19 00:37:42 +07:00
2026-10-05 03:28:26 +07:00
2026-10-06 00:04:14 +07:00
2026-10-05 03:28:26 +07:00
2026-10-06 13:08:12 +07:00
2026-10-11 14:34:04 +07:00
2026-10-18 23:28:33 +07:00
2026-10-06 21:59:53 +07:00
2026-10-18 23:28:33 +07:00
2026-10-18 23:28:33 +07:00
2026-10-06 23:28:20 +07:00
2026-10-07 04:19:14 +07:00
2026-10-18 22:12:29 +07:00
2026-10-07 04:31:52 +07:00
2026-10-07 04:19:14 +07:00
2026-10-19 00:37:42 +07:00
2026-10-19 01:18:02 +07:00
2026-10-10 02:16:32 +07:00
2026-10-18 23:28:33 +07:00
2026-10-07 18:46:05 +07:00
2026-10-07 03:15:57 +07:00
2026-10-08 22:30:04 +07:00
2026-10-05 03:28:48 +07:00
2026-10-05 03:28:48 +07:00
2026-10-15 17:15:32 +07:00
2026-10-14 23:05:26 +07:00
2026-10-17 16:18:41 +07:00
2026-10-19 00:37:42 +07:00
2026-10-06 21:59:53 +07:00
2026-10-19 00:15:48 +07:00
2026-10-06 21:59:53 +07:00
2026-10-05 03:28:14 +07:00
2026-10-06 13:08:13 +07:00
2026-10-19 00:37:42 +07:00
2026-10-04 01:35:48 +07:00
2026-10-19 00:15:48 +07:00
2026-10-19 00:15:48 +07:00
2026-10-18 03:11:20 +07:00
2026-10-19 05:10:50 +07:00
2026-10-18 23:53:38 +07:00
2026-10-13 22:58:00 +07:00
2026-10-18 23:53:44 +07:00
2026-10-07 03:06:00 +07:00
2026-09-28 12:13:17 +07:00
2026-10-17 11:45:53 +07:00
2026-10-06 13:07:57 +07:00
2026-10-11 14:34:04 +07:00
2026-10-03 04:27:47 +07:00
2026-10-06 13:09:54 +07:00
2026-10-10 23:22:41 +07:00
2026-10-10 23:22:41 +07:00
2026-10-03 04:27:47 +07:00
2026-10-11 16:14:01 +07:00
2026-10-17 16:18:41 +07:00
2026-10-17 16:18:41 +07:00
2026-10-06 23:27:07 +07:00
2026-10-19 00:15:48 +07:00
2026-10-19 05:10:50 +07:00
2026-10-18 23:53:44 +07:00
2026-10-07 23:20:27 +07:00
2026-10-17 16:18:30 +07:00
2026-10-05 02:31:47 +07:00
2026-10-15 00:28:17 +07:00
2026-10-18 23:53:44 +07:00
2026-10-06 22:00:15 +07:00
2026-10-06 21:58:57 +07:00
2026-10-19 01:01:25 +07:00
2026-10-19 00:56:52 +07:00
2026-10-18 04:09:16 +07:00
2026-10-19 00:56:52 +07:00
2026-10-06 13:07:58 +07:00
2026-10-09 13:49:03 +07:00
2026-10-07 18:46:05 +07:00
2026-10-05 01:55:08 +07:00
2026-10-18 04:09:16 +07:00
2026-10-06 21:59:54 +07:00