test: update dom/abort tests

Signed-off-by: James M Snell <jasnell@gmail.com>

PR-URL: https://github.com/nodejs/node/pull/37693
Refs: https://github.com/whatwg/dom/pull/960
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This commit is contained in:
James M Snell committed 2021-03-15 08:20:51 -07:00
1 parent 263bf4e2e7
commit 1d740ecca6
3 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ Last update:
- common: https://github.com/web-platform-tests/wpt/tree/bb97a68974/common
- console: https://github.com/web-platform-tests/wpt/tree/3b1f72e99a/console
- dom/abort: https://github.com/web-platform-tests/wpt/tree/625e1310ce/dom/abort
- dom/abort: https://github.com/web-platform-tests/wpt/tree/1728d198c9/dom/abort
- encoding: https://github.com/web-platform-tests/wpt/tree/35f70910d3/encoding
- FileAPI: https://github.com/web-platform-tests/wpt/tree/3b279420d4/FileAPI
- hr-time: https://github.com/web-platform-tests/wpt/tree/9910784394/hr-time
+5
View File
@@ -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();
+1 -1
View File
@@ -8,7 +8,7 @@
"path": "console"
},
"dom/abort": {
"commit": "625e1310ce19e9dde25b01f9eda0452c6ec274da",
"commit": "1728d198c92834d92f7f399ef35e7823d5bfa0e4",
"path": "dom/abort"
},
"encoding": {