From 713307b6505a56ca7b5423b36e297070d756ff15 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Mon, 12 Apr 2010 16:24:28 -0700 Subject: added ng-eval-order attribute --- test/directivesSpec.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/directivesSpec.js') 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( + '
' + + '{{log = log + \'e\'}}' + + '' + + '{{log = log + \'b\'}}' + + '' + + '' + + '' + + '
'); + expect(scope.log).toEqual('abcde'); + }); + }); -- cgit v1.2.3