mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
33289b530c
**what is the change?:** Test coverage checking that callbacks are called when they time out. This test surfaced a bug and this commit includes the fix. I want to refine this approach, but basically we can simulate time outs by controlling the return value of 'now()' and the argument passed to the rAF callback. Next we will write a browser fixture to further test this against real browser APIs. **why make this change?:** Better tests will keep this module working smoothly while we continue refactoring and improving it. **test plan:** Run the new tests, see that it fails without the bug fix.
React Scheduler
This is a work in progress - we are building a utility to better coordinate React and other JavaScript work.