This fixture is for manual testing purposes, and the patterns used in implementing it should not be used as a model. This is mainly for anyone working on making changes to the `schedule` module.
Calls the callback within the frame when not blocked:
Accepts multiple callbacks and calls within frame when not blocked
Schedules callbacks in correct order when they use scheduleCallback to schedule themselves
Calls timed out callbacks and then any more pending callbacks, defers others if time runs out
When some callbacks throw errors, still calls them all within the same frame
IMPORTANT: Open the console when you run this! Inspect the logs there!
When some callbacks throw errors and some also time out, still calls them all within the same frame
IMPORTANT: Open the console when you run this! Inspect the logs there!
Continues calling callbacks even when user switches away from this tab
Can pause execution, dump scheduled callbacks, and continue where it left off
Can force a specific framerate
IMPORTANT: This test may be flaky if other tests have been run in this js instance. To get a clean test refresh the page before running test 9
Runs scheduled JS work for 99% of the frame time when nothing else is using the thread.
NOTE: Try this test both when nothing else is running and when something is using the compositor thread in another visible tab with video or WebGL content (Shift+Click).
Runs scheduled JS work more than 95% of the frame time when inserting DOM nodes.
NOTE: Try this test both when nothing else is running and when something is using the compositor thread in another visible tab with video or WebGL content (Shift+Click).