File tree 1 file changed +3
-2
lines changed 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() {
485
485
const div = document . createElement ( 'div' )
486
486
div . innerHTML = '<include-fragment loading="lazy" src="/hello">loading</include-fragment>'
487
487
document . body . appendChild ( div )
488
-
489
488
return when ( div . firstChild , 'include-fragment-replaced' ) . then ( ( ) => {
490
489
assert . equal ( document . querySelector ( 'include-fragment' ) , null )
491
490
assert . equal ( document . querySelector ( '#replaced' ) . textContent , 'hello' )
@@ -582,9 +581,11 @@ suite('include-fragment-element', function() {
582
581
} , 0 )
583
582
584
583
return load
585
- . then ( ( ) => when ( div . firstChild , 'loadend ' ) )
584
+ . then ( ( ) => when ( div . firstChild , 'include-fragment-replaced ' ) )
586
585
. then ( ( ) => {
587
586
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' )
588
589
} )
589
590
} )
590
591
} )
You can’t perform that action at this time.
0 commit comments