test_midi_packet_timing_sorting.html fails when run twice in a row: "Received timestamp -2 should be greater than 0"
Categories
(Core :: DOM: Device Interfaces, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(1 external file)
dom/midi/tests/test_midi_packet_timing_sorting.html fails on the second run in the mochitest-plain-repeat jobs (seen on macOS aarch64 opt).
The test MIDI device (TestMIDIPlatformService) stamps the packets it sends back up to 10ms in the past. event.timeStamp is relative to the document's time origin. When the test reaches send() quickly, the oldest packet's timestamp can be negative. The test starts its ordering check from lastTime = 0, so it wrongly requires the first timestamp to be positive.
The fix starts the check from -Infinity. The test still checks that the packets arrive in increasing timestamp order.
| Assignee | ||
Comment 1•6 days ago
|
||
The test device stamps the packets up to 10ms in the past, which can be before the document's time origin when the test reaches send() quickly, giving a negative event.timeStamp.
Comment 3•3 days ago
|
||
| bugherder | ||
Description
•