Skip to content

Commit 1728d19

Browse files
authored
Add test for AbortSignal.abort()
See whatwg/dom#960.
1 parent 482859c commit 1728d19

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dom/abort/event.any.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,9 @@ test(t => {
6464
controller.abort();
6565
}, "the abort event should have the right properties");
6666

67+
test(t => {
68+
const signal = AbortSignal.abort();
69+
assert_true(signal.aborted);
70+
}, "the AbortSignal.abort() static returns an already aborted signal");
71+
6772
done();

0 commit comments

Comments
 (0)