diff options
| author | Vojta Jina | 2012-03-23 15:48:51 -0700 |
|---|---|---|
| committer | Vojta Jina | 2012-03-26 21:14:09 -0700 |
| commit | 55027132f3d57e5dcf94683e6e6bd7b0aae0087d (patch) | |
| tree | 489b72f4fd22db897caddbe5288f99b57e529753 /test/BinderSpec.js | |
| parent | 09e175f02cca0f4a295fd0c9b980cd8f432e722b (diff) | |
| download | angular.js-55027132f3d57e5dcf94683e6e6bd7b0aae0087d.tar.bz2 | |
refactor(ngBindAttr): remove
Breaks ng-bind-attr directive removed
Diffstat (limited to 'test/BinderSpec.js')
| -rw-r--r-- | test/BinderSpec.js | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/test/BinderSpec.js b/test/BinderSpec.js index 94b58d0a..306cbc43 100644 --- a/test/BinderSpec.js +++ b/test/BinderSpec.js @@ -49,20 +49,6 @@ describe('Binder', function() { expect(element.text()).toBe('123'); })); - it('AttributesNoneBound', inject(function($rootScope, $compile) { - var a = $compile('<a href="abc" foo="def"></a>')($rootScope); - expect(a[0].nodeName).toBe('A'); - expect(a.attr('ng-bind-attr')).toBeFalsy(); - })); - - it('AttributesAreEvaluated', inject(function($rootScope, $compile) { - var a = $compile('<a ng-bind-attr=\'{"a":"a", "b":"a+b={{a+b}}"}\'></a>')($rootScope); - $rootScope.$eval('a=1;b=2'); - $rootScope.$apply(); - expect(a.attr('a')).toBe('a'); - expect(a.attr('b')).toBe('a+b=3'); - })); - it('InputTypeButtonActionExecutesInScope', inject(function($rootScope, $compile) { var savedCalled = false; element = $compile( @@ -414,29 +400,6 @@ describe('Binder', function() { expect(optionC.text()).toEqual('C'); })); - it('DeleteAttributeIfEvaluatesFalse', inject(function($rootScope, $compile) { - element = $compile( - '<div>' + - '<input ng-model="a0" ng-bind-attr="{disabled:\'{{true}}\'}">' + - '<input ng-model="a1" ng-bind-attr="{disabled:\'{{false}}\'}">' + - '<input ng-model="b0" ng-bind-attr="{disabled:\'{{1}}\'}">' + - '<input ng-model="b1" ng-bind-attr="{disabled:\'{{0}}\'}">' + - '<input ng-model="c0" ng-bind-attr="{disabled:\'{{[0]}}\'}">' + - '<input ng-model="c1" ng-bind-attr="{disabled:\'{{[]}}\'}">' + - '</div>')($rootScope); - $rootScope.$apply(); - function assertChild(index, disabled) { - expect(!!childNode(element, index).attr('disabled')).toBe(disabled); - } - - assertChild(0, true); - assertChild(1, false); - assertChild(2, true); - assertChild(3, false); - assertChild(4, true); - assertChild(5, false); - })); - it('ItShouldSelectTheCorrectRadioBox', inject(function($rootScope, $compile) { element = $compile( '<div>' + |
