Chromium Code Reviews
DescriptionMake two promise-related tests deterministic
Promise rejections are implemented by a posting a trampoline task after
running microtasks[1]. A timer scheduled in the task preceding the
microtasks isn't guaranteed to run after this task, so the tests also
need to be changed to use a nested trampoline to ensure rejection has
taken place before verifying test invariants.
[1] Since https://codereview.chromium.org/1381693002/
BUG=696001
Review-Url: https://codereview.chromium.org/2813823004
Cr-Commit-Position: refs/heads/master@{#463997}
Committed: https://chromium.googlesource.com/chromium/src/+/f6a46ccf800d58cb3ff9b8c4d19eb8eee330d4d0
Patch Set 1 #
Messages
Total messages: 13 (9 generated)
|
||||||||||||||||||||||||||||