Skip to content

Commit 1b53087

Browse files
jasnelldanielleadams
authored andcommitted
test: update dom/abort tests
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #37693 Refs: whatwg/dom#960 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
1 parent ac2f50b commit 1b53087

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

test/fixtures/wpt/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Last update:
1212

1313
- common: https://github.com/web-platform-tests/wpt/tree/bb97a68974/common
1414
- console: https://github.com/web-platform-tests/wpt/tree/3b1f72e99a/console
15-
- dom/abort: https://github.com/web-platform-tests/wpt/tree/625e1310ce/dom/abort
15+
- dom/abort: https://github.com/web-platform-tests/wpt/tree/1728d198c9/dom/abort
1616
- encoding: https://github.com/web-platform-tests/wpt/tree/35f70910d3/encoding
1717
- FileAPI: https://github.com/web-platform-tests/wpt/tree/3b279420d4/FileAPI
1818
- hr-time: https://github.com/web-platform-tests/wpt/tree/9910784394/hr-time

test/fixtures/wpt/dom/abort/event.any.js

+5
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();

test/fixtures/wpt/versions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"path": "console"
99
},
1010
"dom/abort": {
11-
"commit": "625e1310ce19e9dde25b01f9eda0452c6ec274da",
11+
"commit": "1728d198c92834d92f7f399ef35e7823d5bfa0e4",
1212
"path": "dom/abort"
1313
},
1414
"encoding": {

0 commit comments

Comments
 (0)