@@ -17,14 +17,14 @@ import {View} from 'angular2/src/core/annotations_impl/view';
1717
1818import { ElementRef } from 'angular2/src/core/compiler/element_ref' ;
1919
20- import { NonBindable } from 'angular2/ src/directives/non_bindable ' ;
20+ import { NgNonBindable } from '../../ src/directives/ng_non_bindable ' ;
2121
2222import { TestBed } from 'angular2/src/test_lib/test_bed' ;
2323
2424export function main ( ) {
2525 describe ( 'non-bindable' , ( ) => {
2626 it ( 'should not interpolate children' , inject ( [ TestBed , AsyncTestCompleter ] , ( tb , async ) => {
27- var template = '<div>{{text}}<span non-bindable>{{text}}</span></div>' ;
27+ var template = '<div>{{text}}<span ng- non-bindable>{{text}}</span></div>' ;
2828 tb . createView ( TestComponent , { html : template } ) . then ( ( view ) => {
2929 view . detectChanges ( ) ;
3030 expect ( DOM . getText ( view . rootNodes [ 0 ] ) ) . toEqual ( 'foo{{text}}' ) ;
@@ -33,7 +33,7 @@ export function main() {
3333 } ) ) ;
3434
3535 it ( 'should ignore directives on child nodes' , inject ( [ TestBed , AsyncTestCompleter ] , ( tb , async ) => {
36- var template = '<div non-bindable><span id=child test-dec>{{text}}</span></div>' ;
36+ var template = '<div ng- non-bindable><span id=child test-dec>{{text}}</span></div>' ;
3737 tb . createView ( TestComponent , { html : template } ) . then ( ( view ) => {
3838 view . detectChanges ( ) ;
3939 var span = DOM . querySelector ( view . rootNodes [ 0 ] , '#child' ) ;
@@ -43,7 +43,7 @@ export function main() {
4343 } ) ) ;
4444
4545 it ( 'should trigger directives on the same node' , inject ( [ TestBed , AsyncTestCompleter ] , ( tb , async ) => {
46- var template = '<div><span id=child non-bindable test-dec>{{text}}</span></div>' ;
46+ var template = '<div><span id=child ng- non-bindable test-dec>{{text}}</span></div>' ;
4747 tb . createView ( TestComponent , { html : template } ) . then ( ( view ) => {
4848 view . detectChanges ( ) ;
4949 var span = DOM . querySelector ( view . rootNodes [ 0 ] , '#child' ) ;
@@ -55,7 +55,7 @@ export function main() {
5555}
5656
5757@Component ( { selector : 'test-cmp' } )
58- @View ( { directives : [ NonBindable , TestDirective ] } )
58+ @View ( { directives : [ NgNonBindable , TestDirective ] } )
5959class TestComponent {
6060 text : string ;
6161 constructor ( ) {
0 commit comments