GeezerVison is showing github.com — test: update dom/abort tests · nodejs/node@397d937
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: test/fixtures/wpt/README.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -18,7 +18,7 @@ Last update: |
18 | 18 | - html/webappapis/microtask-queuing: https://github.com/web-platform-tests/wpt/tree/0c3bed38df/html/webappapis/microtask-queuing |
19 | 19 | - html/webappapis/timers: https://github.com/web-platform-tests/wpt/tree/ddfe9c089b/html/webappapis/timers |
20 | 20 | - 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 |
22 | 22 |
|
23 | 23 | [Web Platform Tests]: https://github.com/web-platform-tests/wpt |
24 | 24 | [`git node wpt`]: https://github.com/nodejs/node-core-utils/blob/master/docs/git-node.md#git-node-wpt |
Collapse file
Copy file name to clipboardExpand all lines: test/fixtures/wpt/dom/abort/event.any.js +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -64,4 +64,9 @@ test(t => { |
64 | 64 | controller.abort(); |
65 | 65 | }, "the abort event should have the right properties"); |
66 | 66 |
|
| 67 | +test(t => { |
| 68 | + const signal = AbortSignal.abort(); |
| 69 | + assert_true(signal.aborted); |
| 70 | +}, "the AbortSignal.abort() static returns an already aborted signal"); |
| 71 | + |
67 | 72 | done(); |
Collapse file
Copy file name to clipboardExpand all lines: test/fixtures/wpt/versions.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
32 | 32 | "path": "hr-time" |
33 | 33 | }, |
34 | 34 | "dom/abort": { |
35 | | - "commit": "7caa3de7471cf19b78ee9efa313c7341a462b5e3", |
| 35 | + "commit": "1728d198c92834d92f7f399ef35e7823d5bfa0e4", |
36 | 36 | "path": "dom/abort" |
37 | 37 | } |
38 | 38 | } |