@@ -75,38 +75,6 @@ describe('ngProp*', function() {
75
75
expect ( element . prop ( 'text' ) ) . toBe ( null ) ;
76
76
} ) ) ;
77
77
78
- // https://github.com/angular/angular.js/issues/16797
79
- it ( 'should delete properties with undefined values' , inject ( function ( $rootScope , $compile ) {
80
- var element = $compile ( '<span ng-prop-text="myText" />' ) ( $rootScope ) ;
81
- expect ( element [ 0 ] . hasOwnProperty ( 'text' ) ) . toBe ( false ) ;
82
-
83
- $rootScope . myText = 'a value' ;
84
- $rootScope . $digest ( ) ;
85
- expect ( element . prop ( 'text' ) ) . toBe ( 'a value' ) ;
86
- expect ( element [ 0 ] . hasOwnProperty ( 'text' ) ) . toBe ( true ) ;
87
-
88
- $rootScope . myText = undefined ;
89
- $rootScope . $digest ( ) ;
90
- expect ( element [ 0 ] . hasOwnProperty ( 'text' ) ) . toBe ( false ) ;
91
- } ) ) ;
92
-
93
- // Ensure jQuery prop/removeProp are used to support fix/hooks
94
- if ( angular . element . prototype . removeProp ) {
95
- it ( 'should use jQuery.fn.prop() and jQuery.fn.removeProp() to support jQuery.propFix/Hooks' , inject ( function ( $rootScope , $compile ) {
96
- $compile ( '<span ng-prop-text="myText" />' ) ( $rootScope ) ;
97
- spyOn ( angular . element . fn , 'prop' ) . and . callThrough ( ) ;
98
- spyOn ( angular . element . fn , 'removeProp' ) . and . callThrough ( ) ;
99
-
100
- $rootScope . myText = 'a value' ;
101
- $rootScope . $digest ( ) ;
102
- expect ( angular . element . fn . prop ) . toHaveBeenCalledWith ( 'text' , 'a value' ) ;
103
-
104
- $rootScope . myText = undefined ;
105
- $rootScope . $digest ( ) ;
106
- expect ( angular . element . fn . removeProp ) . toHaveBeenCalledWith ( 'text' ) ;
107
- } ) ) ;
108
- }
109
-
110
78
it ( 'should support mixed case using underscore-separated names' , inject ( function ( $rootScope , $compile ) {
111
79
var element = $compile ( '<span ng-prop-a_bcd_e="value" />' ) ( $rootScope ) ;
112
80
$rootScope . value = 123 ;
0 commit comments