@@ -31,8 +31,7 @@ test(t => {
31
31
frame . contentWindow . addEventListener ( "focus" , t . unreached_func ( "window event listener not removed" ) ) ;
32
32
body . onfocus = t . unreached_func ( "body event listener not removed" ) ;
33
33
frame . contentDocument . open ( ) ;
34
- // Pending resolution from https://github.com/whatwg/html/issues/3836.
35
- // assert_equals(body.onfocus, null);
34
+ assert_equals ( body . onfocus , null ) ;
36
35
frame . contentWindow . focus ( ) ;
37
36
frame . contentDocument . close ( ) ;
38
37
} , "Standard event listeners are to be removed from Window" ) ;
@@ -53,13 +52,12 @@ test(t => {
53
52
const div = body . appendChild ( frame . contentDocument . createElement ( "div" ) ) ;
54
53
div . onclick = t . unreached_func ( "element event listener not removed" ) ;
55
54
frame . contentDocument . open ( ) ;
56
- // Pending resolution from https://github.com/whatwg/html/issues/3836.
57
- // assert_equals(div.onclick, null);
55
+ assert_equals ( div . onclick , null ) ;
58
56
const e = frame . contentDocument . createEvent ( "mouseevents" )
59
57
e . initEvent ( "click" , false , false ) ;
60
58
div . dispatchEvent ( e ) ;
61
59
frame . contentDocument . close ( ) ;
62
- } , "IDL attribute event handlers are to be removed " ) ;
60
+ } , "IDL attribute event handlers are to be deactivated " ) ;
63
61
64
62
test ( t => {
65
63
const frame = document . body . appendChild ( document . createElement ( "iframe" ) ) ,
@@ -69,13 +67,13 @@ test(t => {
69
67
div . setAttribute ( "onclick" , "throw new Error('element event listener not removed')" ) ;
70
68
assert_not_equals ( div . onclick , null ) ;
71
69
frame . contentDocument . open ( ) ;
72
- // Pending resolution from https://github.com/whatwg/html/issues/3836.
73
- // assert_equals(div.onclick, null);
70
+ assert_equals ( div . getAttribute ( "onclick" ) , "throw new Error('element event listener not removed')" ) ;
71
+ assert_equals ( div . onclick , null ) ;
74
72
const e = frame . contentDocument . createEvent ( "mouseevents" )
75
73
e . initEvent ( "click" , false , false ) ;
76
74
div . dispatchEvent ( e ) ;
77
75
frame . contentDocument . close ( ) ;
78
- } , "Content attribute event handlers are to be removed " ) ;
76
+ } , "Content attribute event handlers are to be deactivated " ) ;
79
77
80
78
test ( t => {
81
79
const frame = document . body . appendChild ( document . createElement ( "iframe" ) ) ;
0 commit comments