ladybird/Tests
sideshowbarker bbfa1ca7ae Tests: De-flake abortsignal-timeout by dropping its wall-clock assertion
Problem: The abortsignal-timeout.html test was (still) intermittently
failing under CI — printing “…at least 10 milliseconds: false”.

Cause: The test asserts AbortSignal.timeout(10) fired >= 10ms later,
measured as a wall-clock time of performance.now() delta + 1ms fudge.
But that involves timings from two *different* clocks: performance.now()
uses CLOCK_MONOTONIC, while the timeout timer is armed and fired against
CLOCK_MONOTONIC_COARSE (the event-loop clock) — which is quantized to
the kernel tick, and which lags the precise clock by up to a tick. Thus,
a 10ms coarse-scheduled timeout can fall short of 10ms of precise time
by up to one tick. So what was likely happening is: When that shortfall
exceeds the 1ms fudge (coarse-tick kernels, or ticks delayed under CI
load), the delta landed under 10ms. The 1ms fudge added by 6fa32fbf69
narrowed but never closed the race — because the check gates on host
timer/clock precision, rather than on AbortSignal behavior.

Fix: Drop the wall-clock timing assertion. Keep the deterministic checks
that actually exercise AbortSignal.timeout: The abort fires, its
reason is TimeoutError, and the event is trusted. And add a synchronous
check that the signal isn’t aborted immediately after creation – which
confirms the abort is deferred, without racing the clock.
2026-06-05 15:35:34 +02:00
..
AK AK: Verify datetime fetching results and initialize struct tm 2026-06-04 17:32:49 +02:00
ClangPlugins LibGC: Default-construct RootHashMap from the global heap 2026-05-20 20:37:55 +02:00
LibCompress CMake: Rename serenity_* helper functions/macros to ladybird_* 2025-07-03 23:19:41 +02:00
LibCore LibCore: Add immutable byte storage for mapped ranges 2026-05-16 08:13:35 +02:00
LibCrypto LibCrypto: Support EC compressed point format (0x02/0x03) 2026-05-12 13:58:38 +02:00
LibDatabase LibDatabase: Allow String values to contain embedded null bytes 2026-02-14 10:25:33 -05:00
LibDevTools LibWeb/CSS: Link DevTools rules to UA stylesheets 2026-06-04 20:54:33 +01:00
LibDiff AK: Remove unused include from MemoryStream 2026-02-17 12:38:51 +00:00
LibDNS LibDNS: Reject domain name labels longer than 63 octets 2026-06-04 17:41:09 +02:00
LibGC LibGC: Introduce ConservativeHashTable 2026-05-28 21:16:23 +02:00
LibGfx LibGfx: Remove TinyVG image decoding 2026-05-31 19:20:59 +02:00
LibHTTP LibWeb+LibHTTP: Consult HSTS preload list before dynamic-store IPC 2026-05-29 22:23:33 +02:00
LibIPC LibIPC: Don’t dispatch queued messages when sync IPC peer disconnects 2026-05-24 10:00:31 +02:00
LibJS LibJS: Hash encoded source identity in bytecode cache 2026-06-03 14:11:23 +02:00
LibMedia LibMedia: Use direct references to main event loops 2026-06-05 09:18:39 +02:00
LibRegex LibRegex: Inline \w and \d ranges in legacy positive char classes 2026-04-21 16:36:38 +02:00
LibTest CMake: Rename serenity_* helper functions/macros to ladybird_* 2025-07-03 23:19:41 +02:00
LibTextCodec LibTextCodec: Stop buffering invalid UTF-8 tails 2026-05-18 14:08:22 +02:00
LibThreading LibThreading/LibSync: Split out sync primitives 2026-05-08 18:58:35 -05:00
LibTLS Meta: Rename and merge some lagom_* and ladybird_* 2026-05-05 22:08:24 +02:00
LibUnicode LibUnicode: Add an ASCII fast path for line break segmentation 2026-05-05 18:59:07 +02:00
LibURL LibURL: Replace WTF-8 surrogates before Rust URL parsing 2026-05-30 01:41:34 +02:00
LibWasm LibJS: Compact Shape property table to a sorted flat array 2026-05-14 19:59:40 +02:00
LibWeb Tests: De-flake abortsignal-timeout by dropping its wall-clock assertion 2026-06-05 15:35:34 +02:00
LibWebView UI: Shorten web URLs in location fields 2026-05-31 19:20:59 +02:00
LibXML CMake: Rename serenity_* helper functions/macros to ladybird_* 2025-07-03 23:19:41 +02:00
Meta Meta: Handle juxtaposition in CSS value parsing code generation 2026-05-13 11:26:20 +01:00
CMakeLists.txt Tests: Add a LibDevTools test suite 2026-05-27 08:55:02 +01:00