From 9998b8dcbb2674ac680fd6598aea0840e69c0e1b Mon Sep 17 00:00:00 2001 From: Kai Compagner Date: Wed, 14 Jul 2010 12:08:55 -0700 Subject: fix undefine style --- test/directivesSpec.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') 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('
'); + scope.$eval(); + dump(sortedHtml(element)); + expect(element.hasClass('ng-exception')).toBeFalsy(); + }); + it('should ng:show', function(){ var scope = compile('
'); scope.$eval(); -- cgit v1.2.3