Skip to content

Commit

Permalink
Add test for AbortSignal.abort()
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell authored Mar 12, 2021
1 parent 482859c commit 1728d19
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dom/abort/event.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 64,9 @@ test(t => {
controller.abort();
}, "the abort event should have the right properties");

test(t => {
const signal = AbortSignal.abort();
assert_true(signal.aborted);
}, "the AbortSignal.abort() static returns an already aborted signal");

done();

0 comments on commit 1728d19

Please sign in to comment.