Skip to content

Commit 397d937

Browse files
jasnelltargos
authored andcommitted
test: update dom/abort tests
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #37693 Backport-PR-URL: #38386 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 448a6a2 commit 397d937

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
@@ -18,7 +18,7 @@ Last update:
1818
- html/webappapis/microtask-queuing: https://github.com/web-platform-tests/wpt/tree/0c3bed38df/html/webappapis/microtask-queuing
1919
- html/webappapis/timers: https://github.com/web-platform-tests/wpt/tree/ddfe9c089b/html/webappapis/timers
2020
- hr-time: https://github.com/web-platform-tests/wpt/tree/a5d1774ecf/hr-time
21-
- dom/abort: https://github.com/web-platform-tests/wpt/tree/7caa3de747/dom/abort
21+
- dom/abort: https://github.com/web-platform-tests/wpt/tree/1728d198c9/dom/abort
2222

2323
[Web Platform Tests]: https://github.com/web-platform-tests/wpt
2424
[`git node wpt`]: https://github.com/nodejs/node-core-utils/blob/master/docs/git-node.md#git-node-wpt

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
@@ -32,7 +32,7 @@
3232
"path": "hr-time"
3333
},
3434
"dom/abort": {
35-
"commit": "7caa3de7471cf19b78ee9efa313c7341a462b5e3",
35+
"commit": "1728d198c92834d92f7f399ef35e7823d5bfa0e4",
3636
"path": "dom/abort"
3737
}
3838
}

0 commit comments

Comments
 (0)