From 1e00db8daa5c09e7f8f9134f5c94b9a18c7dc425 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 8 Nov 2011 17:19:54 -0800 Subject: fix(directives): make directive names case-insensitive + tests + added docs for angular.directive --- test/AngularSpec.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'test/AngularSpec.js') diff --git a/test/AngularSpec.js b/test/AngularSpec.js index 7831539d..299bfb8a 100644 --- a/test/AngularSpec.js +++ b/test/AngularSpec.js @@ -427,6 +427,29 @@ describe('angular', function() { }); }); + + describe('directive', function() { + it('should register directives with case-insensitive id', function() { + angularDirective('ALLCAPS', function(val, el) {el.text('+' + val + '+')}); + angularDirective('lowercase', function(val, el) {el.text('-' + val + '-')}); + + var el = jqLite('