diff options
| author | Igor Minar | 2010-08-16 10:56:03 -0700 |
|---|---|---|
| committer | Igor Minar | 2010-08-16 10:56:03 -0700 |
| commit | 59401b80ee36d56f7ede551669633abbc6dd1e24 (patch) | |
| tree | 113669e99faae192d0bb89adc4f74db6f22fefd0 /test/directivesSpec.js | |
| parent | 9899959d695a97ddbb3e9a626a769efa714bffe7 (diff) | |
| parent | f09415d0de5d383efc9e2cb35d1323a5aac2371d (diff) | |
| download | angular.js-59401b80ee36d56f7ede551669633abbc6dd1e24.tar.bz2 | |
Merge remote branch 'upstream/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(); |
