@@ -3833,9 +3833,9 @@ describe('$compile', function() {
38333833 } ) ;
38343834
38353835
3836- it ( 'should throw noctrl when missing controllerAs label ' , function ( ) {
3836+ it ( 'should throw noident when missing controllerAs directive property ' , function ( ) {
38373837 module ( function ( $compileProvider ) {
3838- $compileProvider . directive ( 'noCtrl ' , valueFn ( {
3838+ $compileProvider . directive ( 'noIdent ' , valueFn ( {
38393839 templateUrl : 'test.html' ,
38403840 scope : {
38413841 'data' : '=dirData' ,
@@ -3848,17 +3848,17 @@ describe('$compile', function() {
38483848 } ) ;
38493849 inject ( function ( $compile , $rootScope ) {
38503850 expect ( function ( ) {
3851- $compile ( '<div no-ctrl >' ) ( $rootScope ) ;
3852- } ) . toThrowMinErr ( '$compile' , 'noctrl ' ,
3853- 'Cannot bind to controller without directive \'noCtrl\'s controller .' ) ;
3851+ $compile ( '<div no-ident >' ) ( $rootScope ) ;
3852+ } ) . toThrowMinErr ( '$compile' , 'noident ' ,
3853+ 'Cannot bind to controller without identifier for directive \'noIdent\' .' ) ;
38543854 } ) ;
38553855 } ) ;
38563856
38573857
3858- it ( 'should throw noctrl when missing controller label ' , function ( ) {
3858+ it ( 'should throw noident when missing controller identifier ' , function ( ) {
38593859 module ( function ( $compileProvider , $controllerProvider ) {
38603860 $controllerProvider . register ( 'myCtrl' , function ( ) { } ) ;
3861- $compileProvider . directive ( 'noCtrl ' , valueFn ( {
3861+ $compileProvider . directive ( 'noIdent ' , valueFn ( {
38623862 templateUrl : 'test.html' ,
38633863 scope : {
38643864 'data' : '=dirData' ,
@@ -3871,9 +3871,9 @@ describe('$compile', function() {
38713871 } ) ;
38723872 inject ( function ( $compile , $rootScope ) {
38733873 expect ( function ( ) {
3874- $compile ( '<div no-ctrl >' ) ( $rootScope ) ;
3875- } ) . toThrowMinErr ( '$compile' , 'noctrl ' ,
3876- 'Cannot bind to controller without directive \'noCtrl\'s controller .' ) ;
3874+ $compile ( '<div no-ident >' ) ( $rootScope ) ;
3875+ } ) . toThrowMinErr ( '$compile' , 'noident ' ,
3876+ 'Cannot bind to controller without identifier for directive \'noIdent\' .' ) ;
38773877 } ) ;
38783878 } ) ;
38793879
@@ -3958,7 +3958,7 @@ describe('$compile', function() {
39583958 } ) ;
39593959
39603960
3961- it ( 'should put controller in scope when labelled but not using controllerAs' , function ( ) {
3961+ it ( 'should put controller in scope when controller identifier present but not using controllerAs' , function ( ) {
39623962 var controllerCalled = false ;
39633963 var myCtrl ;
39643964 module ( function ( $compileProvider , $controllerProvider ) {
@@ -3998,7 +3998,7 @@ describe('$compile', function() {
39983998 } ) ;
39993999 expect ( this . str ) . toBe ( 'Hello, world!' ) ;
40004000 expect ( this . fn ( ) ) . toBe ( 'called!' ) ;
4001- }
4001+ } ;
40024002
40034003 module ( function ( $compileProvider , $controllerProvider ) {
40044004 $controllerProvider . register ( 'myCtrl' , function ( ) {
@@ -4052,7 +4052,7 @@ describe('$compile', function() {
40524052 } ) ;
40534053 expect ( this . str ) . toBe ( 'Hello, world!' ) ;
40544054 expect ( this . fn ( ) ) . toBe ( 'called!' ) ;
4055- }
4055+ } ;
40564056
40574057 module ( function ( $compileProvider , $controllerProvider ) {
40584058 $controllerProvider . register ( 'myCtrl' , function ( ) {
0 commit comments