From 397d9372c221cfe33f6458e4c102372a6150bb1c Mon Sep 17 00:00:00 2001 From: James M Snell Date: Mon, 15 Mar 2021 07:27:06 -0700 Subject: [PATCH] test: update dom/abort tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: James M Snell PR-URL: https://github.com/nodejs/node/pull/37693 Backport-PR-URL: https://github.com/nodejs/node/pull/38386 Refs: https://github.com/whatwg/dom/pull/960 Reviewed-By: Antoine du Hamel Reviewed-By: Michaƫl Zasso Reviewed-By: Benjamin Gruenbaum --- test/fixtures/wpt/README.md | 2 +- test/fixtures/wpt/dom/abort/event.any.js | 5 +++++ test/fixtures/wpt/versions.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/test/fixtures/wpt/README.md b/test/fixtures/wpt/README.md index 6d2fc11710d3b6..e498acc0985bc0 100644 --- a/test/fixtures/wpt/README.md +++ b/test/fixtures/wpt/README.md @@ -18,7 +18,7 @@ Last update: - html/webappapis/microtask-queuing: https://github.com/web-platform-tests/wpt/tree/0c3bed38df/html/webappapis/microtask-queuing - html/webappapis/timers: https://github.com/web-platform-tests/wpt/tree/ddfe9c089b/html/webappapis/timers - hr-time: https://github.com/web-platform-tests/wpt/tree/a5d1774ecf/hr-time -- dom/abort: https://github.com/web-platform-tests/wpt/tree/7caa3de747/dom/abort +- dom/abort: https://github.com/web-platform-tests/wpt/tree/1728d198c9/dom/abort [Web Platform Tests]: https://github.com/web-platform-tests/wpt [`git node wpt`]: https://github.com/nodejs/node-core-utils/blob/master/docs/git-node.md#git-node-wpt diff --git a/test/fixtures/wpt/dom/abort/event.any.js b/test/fixtures/wpt/dom/abort/event.any.js index a67e6f400fcf1d..2589ba1ce45091 100644 --- a/test/fixtures/wpt/dom/abort/event.any.js +++ b/test/fixtures/wpt/dom/abort/event.any.js @@ -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(); diff --git a/test/fixtures/wpt/versions.json b/test/fixtures/wpt/versions.json index 0bbc27a9ff1d1f..5d4fe8988cb0b3 100644 --- a/test/fixtures/wpt/versions.json +++ b/test/fixtures/wpt/versions.json @@ -32,7 +32,7 @@ "path": "hr-time" }, "dom/abort": { - "commit": "7caa3de7471cf19b78ee9efa313c7341a462b5e3", + "commit": "1728d198c92834d92f7f399ef35e7823d5bfa0e4", "path": "dom/abort" } }