File tree 1 file changed +3
-3
lines changed
packages/@glimmer-workspace/integration-tests/test
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ class DebugRenderTreeTest extends RenderTest {
283
283
args : { positional : [ this . element . firstChild ] , named : { } } ,
284
284
instance : ( instance : GlimmerishComponent ) => instance === null ,
285
285
template : null ,
286
- bounds : this . nodeBounds ( this . element . firstChild ) ,
286
+ bounds : this . nodeBounds ( this . element . firstChild ! . firstChild , this . element ) ,
287
287
children : [
288
288
{
289
289
type : 'component' ,
@@ -489,12 +489,12 @@ class DebugRenderTreeTest extends RenderTest {
489
489
assert . deepEqual ( this . delegate . getCapturedRenderTree ( ) , [ ] , 'there was no output' ) ;
490
490
}
491
491
492
- nodeBounds ( _node : SimpleNode | null ) : CapturedBounds {
492
+ nodeBounds ( _node : SimpleNode | null , parent ?: SimpleNode ) : CapturedBounds {
493
493
let node = expect ( _node , 'BUG: Expected node' ) ;
494
494
495
495
return {
496
496
parentElement : expect (
497
- node . parentNode ,
497
+ parent || node . parentNode ,
498
498
'BUG: detached node'
499
499
) as unknown as SimpleNode as SimpleElement ,
500
500
firstNode : node as unknown as SimpleNode ,
You can’t perform that action at this time.
0 commit comments