diff options
| author | Misko Hevery | 2010-04-12 16:24:28 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-04-12 16:24:28 -0700 |
| commit | 713307b6505a56ca7b5423b36e297070d756ff15 (patch) | |
| tree | 9c229723ee42350e85fa376911e5f3501e6e3762 /test/directivesSpec.js | |
| parent | 841640e540b5e054a97e650bdd7b560680e94840 (diff) | |
| download | angular.js-713307b6505a56ca7b5423b36e297070d756ff15.tar.bz2 | |
added ng-eval-order attribute
Diffstat (limited to 'test/directivesSpec.js')
| -rw-r--r-- | test/directivesSpec.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js index 300602fe..76a12616 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -181,4 +181,18 @@ describe("directives", function(){ expect(scope.greet('misko')).toEqual('hello misko!'); delete window.Greeter; }); + + it('should eval things according to ng-eval-order', function(){ + var scope = compile( + '<div ng-init="log=\'\'">' + + '{{log = log + \'e\'}}' + + '<span ng-eval-order="first" ng-eval="log = log + \'a\'">' + + '{{log = log + \'b\'}}' + + '<span src="{{log = log + \'c\'}}"></span>' + + '<span bind-template="{{log = log + \'d\'}}"></span>' + + '</span>' + + '</div>'); + expect(scope.log).toEqual('abcde'); + }); + }); |
