diff options
| author | Misko Hevery | 2012-03-13 13:49:05 -0700 |
|---|---|---|
| committer | Misko Hevery | 2012-03-13 16:58:36 -0700 |
| commit | 31cd5803102ba93f8b93cd5304aea4ade50f96ab (patch) | |
| tree | 6714fa9f40541f2e7f7b8211e9c2a02b9d8a064e /test | |
| parent | d34f3bc7a61056a1f4aebb49d2475414fa16d5e4 (diff) | |
| download | angular.js-31cd5803102ba93f8b93cd5304aea4ade50f96ab.tar.bz2 | |
fix(ng-non-bindable): increase priority to 1000
- increase ng-non-bindable prioirity to 1000 so that it prevents attribute interpolation on same level.
Diffstat (limited to 'test')
| -rw-r--r-- | test/directive/ngNonBindableSpec.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/directive/ngNonBindableSpec.js b/test/directive/ngNonBindableSpec.js index 8b745364..4f69528b 100644 --- a/test/directive/ngNonBindableSpec.js +++ b/test/directive/ngNonBindableSpec.js @@ -10,11 +10,12 @@ describe('ng-non-bindable', function() { }); - it('should prevent compilation of the owning element and its children', + iit('should prevent compilation of the owning element and its children', inject(function($rootScope, $compile) { - element = $compile('<div ng-non-bindable><span ng-bind="name"></span></div>')($rootScope); + element = $compile('<div ng-non-bindable text="{{name}}"><span ng-bind="name"></span></div>')($rootScope); $rootScope.name = 'misko'; $rootScope.$digest(); expect(element.text()).toEqual(''); + expect(element.attr('text')).toEqual('{{name}}'); })); }); |
