From 7ec8a89362f7010f2b0f5fb73a644dab789ce010 Mon Sep 17 00:00:00 2001 From: Di Peng Date: Tue, 9 Aug 2011 18:24:56 -0700 Subject: fix(directives): make ng:class-even/odd work with ng:class Closes #508 --- test/directivesSpec.js | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) (limited to 'test/directivesSpec.js') diff --git a/test/directivesSpec.js b/test/directivesSpec.js index 1a02e318..488ebaa2 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -217,6 +217,50 @@ describe("directive", function(){ expect(e2.hasClass('even')).toBeTruthy(); }); + + it('should allow both ng:class and ng:class-odd/even on the same element', function() { + var scope = compile('