File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -485,7 +485,6 @@ suite('include-fragment-element', function() {
485485 const div = document . createElement ( 'div' )
486486 div . innerHTML = '<include-fragment loading="lazy" src="/hello">loading</include-fragment>'
487487 document . body . appendChild ( div )
488-
489488 return when ( div . firstChild , 'include-fragment-replaced' ) . then ( ( ) => {
490489 assert . equal ( document . querySelector ( 'include-fragment' ) , null )
491490 assert . equal ( document . querySelector ( '#replaced' ) . textContent , 'hello' )
@@ -582,9 +581,11 @@ suite('include-fragment-element', function() {
582581 } , 0 )
583582
584583 return load
585- . then ( ( ) => when ( div . firstChild , 'loadend ' ) )
584+ . then ( ( ) => when ( div . firstChild , 'include-fragment-replaced ' ) )
586585 . then ( ( ) => {
587586 assert . equal ( count , 1 , "Load occured too many times" )
587+ assert . equal ( document . querySelector ( 'include-fragment' ) , null )
588+ assert . equal ( document . querySelector ( '#replaced' ) . textContent , 'hello' )
588589 } )
589590 } )
590591} )
You can’t perform that action at this time.
0 commit comments