Skip to content

Commit

Permalink
Part 8: Fix TaskController testcase.
Browse files Browse the repository at this point in the history
Depends on D145207

Differential Revision: https://phabricator.services.mozilla.com/D145208

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1767087
gecko-commit: 26dcb894306030a4897a1e15ae4285d04646c422
gecko-reviewers: smaug
  • Loading branch information
arai-a authored and moz-wptsync-bot committed May 3, 2022
1 parent 76abba2 commit 146851f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scheduler/post-task-with-abort-signal-in-handler.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ promise_test(t => {
promise_test(t => {
const controller = new TaskController();
const signal = controller.signal;
return promise_rejects_dom(t, 'AbortError', scheduler.postTask(async () => {
return scheduler.postTask(async () => {
await new Promise(resolve => t.step_timeout(resolve, 0));
controller.abort();
}, { signal }));
}, { signal });
}, 'Posting a task with a signal and abort the signal when running the async callback');

0 comments on commit 146851f

Please sign in to comment.