Commit fcd328c
Add Fantom tests for scheduler yielding with idle callbacks
Summary:
Extend the `requestIdleCallback` integration test suite with two cases that cover how idle callbacks interact with low priority tasks running through the scheduler:
- `shouldYield` stays `false` while a low priority task is executing, even when an idle callback is scheduled in the middle of its execution (an idle callback is lower priority, so no yielding is warranted).
- A low priority task scheduled after an idle callback executes before the idle callback, since the low priority task has a higher priority.
Changelog: [Internal]
Differential Revision: D1107530311 parent e04ff69 commit fcd328c
1 file changed
Lines changed: 50 additions & 0 deletions
File tree
- packages/react-native/src/private/webapis/idlecallbacks/__tests__
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
122 | 172 | | |
0 commit comments