@@ -111,12 +111,10 @@ class DebugRenderTreeTest extends RenderTest {
111111 }
112112
113113 @test 'strict-mode components without debug symbols preserve names from scope' ( ) {
114- const state = trackedObj ( { showSecond : false } ) ;
115-
116114 const HelloWorld = defComponent ( '{{@arg}}' ) ;
117115 const Root = defComponent (
118- `<HelloWorld @arg="first"/>{{#if state.showSecond}}<HelloWorld @arg="second"/>{{/if}} ` ,
119- { scope : { HelloWorld, state } , emit : { moduleName : 'root.hbs' , debugSymbols : false } }
116+ `<HelloWorld @arg="first"/>` ,
117+ { scope : { HelloWorld } , emit : { moduleName : 'root.hbs' , debugSymbols : false } }
120118 ) ;
121119
122120 this . renderComponent ( Root ) ;
@@ -142,39 +140,6 @@ class DebugRenderTreeTest extends RenderTest {
142140 ] ,
143141 } ,
144142 ] ) ;
145-
146- state [ 'showSecond' ] = true ;
147-
148- this . assertRenderTree ( [
149- {
150- type : 'component' ,
151- name : '{ROOT}' ,
152- args : { positional : [ ] , named : { } } ,
153- instance : null ,
154- template : 'root.hbs' ,
155- bounds : this . elementBounds ( this . delegate . getInitialElement ( ) ) ,
156- children : [
157- {
158- type : 'component' ,
159- name : 'HelloWorld' ,
160- args : { positional : [ ] , named : { arg : 'first' } } ,
161- instance : null ,
162- template : '(unknown template module)' ,
163- bounds : this . nodeBounds ( this . delegate . getInitialElement ( ) . firstChild ) ,
164- children : [ ] ,
165- } ,
166- {
167- type : 'component' ,
168- name : 'HelloWorld' ,
169- args : { positional : [ ] , named : { arg : 'second' } } ,
170- instance : null ,
171- template : '(unknown template module)' ,
172- bounds : this . nodeBounds ( this . delegate . getInitialElement ( ) . lastChild ) ,
173- children : [ ] ,
174- } ,
175- ] ,
176- } ,
177- ] ) ;
178143 }
179144
180145 @test 'strict-mode modifiers' ( ) {
0 commit comments