Open Bug 1844129 Opened 1 year ago Updated 8 months ago

Add testing runnables which may 'hang' a thread or a process for some time or indefinitely.

Categories

(Core :: XPCOM, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: smaug, Assigned: aiunusov)

References

Details

Attachments

(1 file)

We have landed various changes to hopefully fix some shutdown (of workers, content processes, parent process) issues, but we have no good ways to test it all, and that would be very valuable especially to catch regressions.

Assignee: nobody → aiunusov

https://searchfox.org/mozilla-central/source/dom/webidl/TestUtils.webidl#12
undefined dispatchSlowTask(unsigned long sleepTime);

https://searchfox.org/mozilla-central/source/dom/base/TestUtils.cpp

we could expose testing runnable in that way

(In reply to Artur Iunusov from comment #2)

https://searchfox.org/mozilla-central/source/dom/webidl/TestUtils.webidl#12
undefined dispatchSlowTask(unsigned long sleepTime);

https://searchfox.org/mozilla-central/source/dom/base/TestUtils.cpp

we could expose testing runnable in that way

Note that it has a spec for WPT purpose: https://testutils.spec.whatwg.org

See Also: → 1874800
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: