@@ -2915,21 +2915,21 @@ describe('$compile', function() {
2915
2915
2916
2916
inject ( function ( $rootScope ) {
2917
2917
compile ( '<div other-tpl-dir param1="::foo" param2="bar"></div>' ) ;
2918
- expect ( countWatches ( $rootScope ) ) . toEqual ( 7 ) ; // 5 -> template watch group, 2 -> '='
2918
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 6 ) ; // 4 -> template watch group, 2 -> '='
2919
2919
$rootScope . $digest ( ) ;
2920
2920
expect ( element . html ( ) ) . toBe ( '1:;2:;3:;4:' ) ;
2921
- expect ( countWatches ( $rootScope ) ) . toEqual ( 7 ) ;
2921
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 6 ) ;
2922
2922
2923
2923
$rootScope . foo = 'foo' ;
2924
2924
$rootScope . $digest ( ) ;
2925
2925
expect ( element . html ( ) ) . toBe ( '1:foo;2:;3:foo;4:' ) ;
2926
- expect ( countWatches ( $rootScope ) ) . toEqual ( 5 ) ;
2926
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ;
2927
2927
2928
2928
$rootScope . foo = 'baz' ;
2929
2929
$rootScope . bar = 'bar' ;
2930
2930
$rootScope . $digest ( ) ;
2931
2931
expect ( element . html ( ) ) . toBe ( '1:foo;2:bar;3:foo;4:bar' ) ;
2932
- expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ;
2932
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 3 ) ;
2933
2933
2934
2934
$rootScope . bar = 'baz' ;
2935
2935
$rootScope . $digest ( ) ;
@@ -2949,21 +2949,21 @@ describe('$compile', function() {
2949
2949
2950
2950
inject ( function ( $rootScope ) {
2951
2951
compile ( '<div other-tpl-dir param1="{{::foo}}" param2="{{bar}}"></div>' ) ;
2952
- expect ( countWatches ( $rootScope ) ) . toEqual ( 7 ) ; // 5 -> template watch group, 2 -> {{ }}
2952
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 6 ) ; // 4 -> template watch group, 2 -> {{ }}
2953
2953
$rootScope . $digest ( ) ;
2954
2954
expect ( element . html ( ) ) . toBe ( '1:;2:;3:;4:' ) ;
2955
- expect ( countWatches ( $rootScope ) ) . toEqual ( 5 ) ; // (- 2) -> bind-once in template
2955
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ; // (- 2) -> bind-once in template
2956
2956
2957
2957
$rootScope . foo = 'foo' ;
2958
2958
$rootScope . $digest ( ) ;
2959
2959
expect ( element . html ( ) ) . toBe ( '1:foo;2:;3:;4:' ) ;
2960
- expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ;
2960
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 3 ) ;
2961
2961
2962
2962
$rootScope . foo = 'baz' ;
2963
2963
$rootScope . bar = 'bar' ;
2964
2964
$rootScope . $digest ( ) ;
2965
2965
expect ( element . html ( ) ) . toBe ( '1:foo;2:bar;3:;4:' ) ;
2966
- expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ;
2966
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 3 ) ;
2967
2967
2968
2968
$rootScope . bar = 'baz' ;
2969
2969
$rootScope . $digest ( ) ;
@@ -2986,18 +2986,18 @@ describe('$compile', function() {
2986
2986
compile ( '<div other-tpl-dir param1="::foo" param2="bar"></div>' ) ;
2987
2987
$rootScope . $digest ( ) ;
2988
2988
expect ( element . html ( ) ) . toBe ( '1:;2:;3:;4:' ) ;
2989
- expect ( countWatches ( $rootScope ) ) . toEqual ( 7 ) ; // 5 -> template watch group, 2 -> '='
2989
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 6 ) ; // 4 -> template watch group, 2 -> '='
2990
2990
2991
2991
$rootScope . foo = 'foo' ;
2992
2992
$rootScope . $digest ( ) ;
2993
2993
expect ( element . html ( ) ) . toBe ( '1:foo;2:;3:foo;4:' ) ;
2994
- expect ( countWatches ( $rootScope ) ) . toEqual ( 5 ) ;
2994
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ;
2995
2995
2996
2996
$rootScope . foo = 'baz' ;
2997
2997
$rootScope . bar = 'bar' ;
2998
2998
$rootScope . $digest ( ) ;
2999
2999
expect ( element . html ( ) ) . toBe ( '1:foo;2:bar;3:foo;4:bar' ) ;
3000
- expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ;
3000
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 3 ) ;
3001
3001
3002
3002
$rootScope . bar = 'baz' ;
3003
3003
$rootScope . $digest ( ) ;
@@ -3020,18 +3020,18 @@ describe('$compile', function() {
3020
3020
compile ( '<div other-tpl-dir param1="{{::foo}}" param2="{{bar}}"></div>' ) ;
3021
3021
$rootScope . $digest ( ) ;
3022
3022
expect ( element . html ( ) ) . toBe ( '1:;2:;3:;4:' ) ;
3023
- expect ( countWatches ( $rootScope ) ) . toEqual ( 5 ) ; // (5 - 2) -> template watch group, 2 -> {{ }}
3023
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ; // (4 - 2) -> template watch group, 2 -> {{ }}
3024
3024
3025
3025
$rootScope . foo = 'foo' ;
3026
3026
$rootScope . $digest ( ) ;
3027
3027
expect ( element . html ( ) ) . toBe ( '1:foo;2:;3:;4:' ) ;
3028
- expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ;
3028
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 3 ) ;
3029
3029
3030
3030
$rootScope . foo = 'baz' ;
3031
3031
$rootScope . bar = 'bar' ;
3032
3032
$rootScope . $digest ( ) ;
3033
3033
expect ( element . html ( ) ) . toBe ( '1:foo;2:bar;3:;4:' ) ;
3034
- expect ( countWatches ( $rootScope ) ) . toEqual ( 4 ) ;
3034
+ expect ( countWatches ( $rootScope ) ) . toEqual ( 3 ) ;
3035
3035
3036
3036
$rootScope . bar = 'baz' ;
3037
3037
$rootScope . $digest ( ) ;
0 commit comments