diff options
| author | Kai Compagner | 2010-07-14 12:08:55 -0700 |
|---|---|---|
| committer | Kai Compagner | 2010-07-14 12:08:55 -0700 |
| commit | 9998b8dcbb2674ac680fd6598aea0840e69c0e1b (patch) | |
| tree | 069df1c8fc9ce1ae39af468ada45e6597d085eb0 /test/directivesSpec.js | |
| parent | 32361d03a147213747762e17d279639666ed85fb (diff) | |
| download | angular.js-9998b8dcbb2674ac680fd6598aea0840e69c0e1b.tar.bz2 | |
fix undefine style
Diffstat (limited to 'test/directivesSpec.js')
| -rw-r--r-- | test/directivesSpec.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js index df0b5b94..ef4814bf 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -174,6 +174,13 @@ describe("directives", function(){ expect(element.css('color')).toEqual('red'); }); + it('should silently ignore undefined ng:style', function() { + var scope = compile('<div ng:style="myStyle"></div>'); + scope.$eval(); + dump(sortedHtml(element)); + expect(element.hasClass('ng-exception')).toBeFalsy(); + }); + it('should ng:show', function(){ var scope = compile('<div ng:hide="hide"></div>'); scope.$eval(); |
