From 1d740ecca6f46eced9f2e1a4d83eadbbe77972fb 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 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 1f3f51b9a4ffdc..52d4ccc8294a6c 100644 --- a/test/fixtures/wpt/README.md +++ b/test/fixtures/wpt/README.md @@ -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 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 5aa72e4f084bff..c533088b4693b8 100644 --- a/test/fixtures/wpt/versions.json +++ b/test/fixtures/wpt/versions.json @@ -8,7 +8,7 @@ "path": "console" }, "dom/abort": { - "commit": "625e1310ce19e9dde25b01f9eda0452c6ec274da", + "commit": "1728d198c92834d92f7f399ef35e7823d5bfa0e4", "path": "dom/abort" }, "encoding": {