diff options
| author | Misko Hevery | 2010-08-14 12:50:24 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-08-14 12:50:39 -0700 |
| commit | f09415d0de5d383efc9e2cb35d1323a5aac2371d (patch) | |
| tree | 325380ca603390a32537c8b346967ad674664a3f /test/directivesSpec.js | |
| parent | 91104f878debd0cd86ba62fed2f30be433200690 (diff) | |
| parent | 9998b8dcbb2674ac680fd6598aea0840e69c0e1b (diff) | |
| download | angular.js-f09415d0de5d383efc9e2cb35d1323a5aac2371d.tar.bz2 | |
merge kai/master
Diffstat (limited to 'test/directivesSpec.js')
| -rw-r--r-- | test/directivesSpec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js index 278f9c4c..f0eb5c09 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -216,6 +216,12 @@ describe("directives", function(){ }); }); + it('should silently ignore undefined ng:style', function() { + var scope = compile('<div ng:style="myStyle"></div>'); + scope.$eval(); + expect(element.hasClass('ng-exception')).toBeFalsy(); + }); + it('should ng:show', function(){ var scope = compile('<div ng:hide="hide"></div>'); scope.$eval(); |
