aboutsummaryrefslogtreecommitdiffstats
path: root/test/directivesSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-08-14 12:50:24 -0700
committerMisko Hevery2010-08-14 12:50:39 -0700
commitf09415d0de5d383efc9e2cb35d1323a5aac2371d (patch)
tree325380ca603390a32537c8b346967ad674664a3f /test/directivesSpec.js
parent91104f878debd0cd86ba62fed2f30be433200690 (diff)
parent9998b8dcbb2674ac680fd6598aea0840e69c0e1b (diff)
downloadangular.js-f09415d0de5d383efc9e2cb35d1323a5aac2371d.tar.bz2
merge kai/master
Diffstat (limited to 'test/directivesSpec.js')
-rw-r--r--test/directivesSpec.js6
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();