@@ -32,43 +32,6 @@ describe('runtime', function() {
3232 } ) ;
3333 } ) ;
3434
35- describe ( '#child' , function ( ) {
36- if ( ! Handlebars . compile ) {
37- return ;
38- }
39-
40- it ( 'should throw for depthed methods without depths' , function ( ) {
41- shouldThrow ( function ( ) {
42- var template = Handlebars . compile ( '{{#foo}}{{../bar}}{{/foo}}' ) ;
43- // Calling twice to hit the non-compiled case.
44- template . _setup ( { } ) ;
45- template . _setup ( { } ) ;
46- template . _child ( 1 ) ;
47- } , Error , 'must pass parent depths' ) ;
48- } ) ;
49-
50- it ( 'should throw for block param methods without params' , function ( ) {
51- shouldThrow ( function ( ) {
52- var template = Handlebars . compile ( '{{#foo as |foo|}}{{foo}}{{/foo}}' ) ;
53- // Calling twice to hit the non-compiled case.
54- template . _setup ( { } ) ;
55- template . _setup ( { } ) ;
56- template . _child ( 1 ) ;
57- } , Error , 'must pass block params' ) ;
58- } ) ;
59- it ( 'should expose child template' , function ( ) {
60- var template = Handlebars . compile ( '{{#foo}}bar{{/foo}}' ) ;
61- // Calling twice to hit the non-compiled case.
62- equal ( template . _child ( 1 ) ( ) , 'bar' ) ;
63- equal ( template . _child ( 1 ) ( ) , 'bar' ) ;
64- } ) ;
65- it ( 'should render depthed content' , function ( ) {
66- var template = Handlebars . compile ( '{{#foo}}{{../bar}}{{/foo}}' ) ;
67- // Calling twice to hit the non-compiled case.
68- equal ( template . _child ( 1 , undefined , [ ] , [ { bar : 'baz' } ] ) ( ) , 'baz' ) ;
69- } ) ;
70- } ) ;
71-
7235 describe ( '#noConflict' , function ( ) {
7336 if ( ! CompilerContext . browser ) {
7437 return ;
0 commit comments