From 6fb4bf4c543b3e48375221a9c5f1791af31a3ffc 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 22d3c84b..afb4e04f 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -220,6 +220,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('