File tree Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Last update:
12
12
13
13
- common: https://github.com/web-platform-tests/wpt/tree/03c5072aff/common
14
14
- console: https://github.com/web-platform-tests/wpt/tree/3b1f72e99a/console
15
- - dom/abort: https://github.com/web-platform-tests/wpt/tree/1728d198c9 /dom/abort
15
+ - dom/abort: https://github.com/web-platform-tests/wpt/tree/c49cafb491 /dom/abort
16
16
- encoding: https://github.com/web-platform-tests/wpt/tree/35f70910d3/encoding
17
17
- FileAPI: https://github.com/web-platform-tests/wpt/tree/3b279420d4/FileAPI
18
18
- hr-time: https://github.com/web-platform-tests/wpt/tree/9910784394/hr-time
Original file line number Diff line number Diff line change
1
+ test ( t => {
2
+ const signal = AbortSignal . abort ( ) ;
3
+ assert_true ( signal instanceof AbortSignal , "returned object is an AbortSignal" ) ;
4
+ assert_true ( signal . aborted , "returned signal is already aborted" ) ;
5
+ } , "the AbortSignal.abort() static returns an already aborted signal" ) ;
6
+
7
+ async_test ( t => {
8
+ const s = AbortSignal . abort ( ) ;
9
+ s . addEventListener ( "abort" , t . unreached_func ( "abort event listener called" ) ) ;
10
+ s . onabort = t . unreached_func ( "abort event handler called" ) ;
11
+ t . step_timeout ( ( ) => { t . done ( ) ; } , 2000 ) ;
12
+ } , "signal returned by AbortSignal.abort() should not fire abort event" ) ;
Original file line number Diff line number Diff line change @@ -64,9 +64,4 @@ 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
-
72
67
done ( ) ;
Original file line number Diff line number Diff line change 8
8
"path" : " console"
9
9
},
10
10
"dom/abort" : {
11
- "commit" : " 1728d198c92834d92f7f399ef35e7823d5bfa0e4 " ,
11
+ "commit" : " c49cafb491d99d6318f8f24a26936cc66501f412 " ,
12
12
"path" : " dom/abort"
13
13
},
14
14
"encoding" : {
You can’t perform that action at this time.
0 commit comments