@@ -2893,21 +2893,21 @@ describe('$compile', function() {
2893
2893
2894
2894
inject ( function ( $rootScope ) {
2895
2895
compile ( '<div other-tpl-dir param1="::foo" param2="bar"></div>' ) ;
2896
- expect ( countWatches ( $rootScope ) ) . toEqual ( 6 ) ; // 4 -> template watch group, 2 -> '='
2896
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 7 ) ; // 5 -> template watch group, 2 -> '='
2897
2897
$rootScope . $digest ( ) ;
2898
2898
expect ( element . html ( ) ) . toBe ( '1:;2:;3:;4:' ) ;
2899
- expect ( countWatches ( $rootScope ) ) . toEqual ( 6 ) ;
2899
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 7 ) ;
2900
2900
2901
2901
$rootScope . foo = 'foo' ;
2902
2902
$rootScope . $digest ( ) ;
2903
2903
expect ( element . html ( ) ) . toBe ( '1:foo;2:;3:foo;4:' ) ;
2904
- expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ;
2904
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 5 ) ;
2905
2905
2906
2906
$rootScope . foo = 'baz' ;
2907
2907
$rootScope . bar = 'bar' ;
2908
2908
$rootScope . $digest ( ) ;
2909
2909
expect ( element . html ( ) ) . toBe ( '1:foo;2:bar;3:foo;4:bar' ) ;
2910
- expect ( countWatches ( $rootScope ) ) . toEqual ( 3 ) ;
2910
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ;
2911
2911
2912
2912
$rootScope . bar = 'baz' ;
2913
2913
$rootScope . $digest ( ) ;
@@ -2927,21 +2927,21 @@ describe('$compile', function() {
2927
2927
2928
2928
inject ( function ( $rootScope ) {
2929
2929
compile ( '<div other-tpl-dir param1="{{::foo}}" param2="{{bar}}"></div>' ) ;
2930
- expect ( countWatches ( $rootScope ) ) . toEqual ( 6 ) ; // 4 -> template watch group, 2 -> {{ }}
2930
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 7 ) ; // 5 -> template watch group, 2 -> {{ }}
2931
2931
$rootScope . $digest ( ) ;
2932
2932
expect ( element . html ( ) ) . toBe ( '1:;2:;3:;4:' ) ;
2933
- expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ; // (- 2) -> bind-once in template
2933
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 5 ) ; // (- 2) -> bind-once in template
2934
2934
2935
2935
$rootScope . foo = 'foo' ;
2936
2936
$rootScope . $digest ( ) ;
2937
2937
expect ( element . html ( ) ) . toBe ( '1:foo;2:;3:;4:' ) ;
2938
- expect ( countWatches ( $rootScope ) ) . toEqual ( 3 ) ;
2938
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ;
2939
2939
2940
2940
$rootScope . foo = 'baz' ;
2941
2941
$rootScope . bar = 'bar' ;
2942
2942
$rootScope . $digest ( ) ;
2943
2943
expect ( element . html ( ) ) . toBe ( '1:foo;2:bar;3:;4:' ) ;
2944
- expect ( countWatches ( $rootScope ) ) . toEqual ( 3 ) ;
2944
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ;
2945
2945
2946
2946
$rootScope . bar = 'baz' ;
2947
2947
$rootScope . $digest ( ) ;
@@ -2964,18 +2964,18 @@ describe('$compile', function() {
2964
2964
compile ( '<div other-tpl-dir param1="::foo" param2="bar"></div>' ) ;
2965
2965
$rootScope . $digest ( ) ;
2966
2966
expect ( element . html ( ) ) . toBe ( '1:;2:;3:;4:' ) ;
2967
- expect ( countWatches ( $rootScope ) ) . toEqual ( 6 ) ; // 4 -> template watch group, 2 -> '='
2967
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 7 ) ; // 5 -> template watch group, 2 -> '='
2968
2968
2969
2969
$rootScope . foo = 'foo' ;
2970
2970
$rootScope . $digest ( ) ;
2971
2971
expect ( element . html ( ) ) . toBe ( '1:foo;2:;3:foo;4:' ) ;
2972
- expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ;
2972
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 5 ) ;
2973
2973
2974
2974
$rootScope . foo = 'baz' ;
2975
2975
$rootScope . bar = 'bar' ;
2976
2976
$rootScope . $digest ( ) ;
2977
2977
expect ( element . html ( ) ) . toBe ( '1:foo;2:bar;3:foo;4:bar' ) ;
2978
- expect ( countWatches ( $rootScope ) ) . toEqual ( 3 ) ;
2978
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ;
2979
2979
2980
2980
$rootScope . bar = 'baz' ;
2981
2981
$rootScope . $digest ( ) ;
@@ -2998,18 +2998,18 @@ describe('$compile', function() {
2998
2998
compile ( '<div other-tpl-dir param1="{{::foo}}" param2="{{bar}}"></div>' ) ;
2999
2999
$rootScope . $digest ( ) ;
3000
3000
expect ( element . html ( ) ) . toBe ( '1:;2:;3:;4:' ) ;
3001
- expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ; // (4 - 2) -> template watch group, 2 -> {{ }}
3001
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 5 ) ; // (5 - 2) -> template watch group, 2 -> {{ }}
3002
3002
3003
3003
$rootScope . foo = 'foo' ;
3004
3004
$rootScope . $digest ( ) ;
3005
3005
expect ( element . html ( ) ) . toBe ( '1:foo;2:;3:;4:' ) ;
3006
- expect ( countWatches ( $rootScope ) ) . toEqual ( 3 ) ;
3006
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ;
3007
3007
3008
3008
$rootScope . foo = 'baz' ;
3009
3009
$rootScope . bar = 'bar' ;
3010
3010
$rootScope . $digest ( ) ;
3011
3011
expect ( element . html ( ) ) . toBe ( '1:foo;2:bar;3:;4:' ) ;
3012
- expect ( countWatches ( $rootScope ) ) . toEqual ( 3 ) ;
3012
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ;
3013
3013
3014
3014
$rootScope . bar = 'baz' ;
3015
3015
$rootScope . $digest ( ) ;
0 commit comments