aboutsummaryrefslogtreecommitdiffstats
path: root/test/CompilerSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/CompilerSpec.js')
-rw-r--r--test/CompilerSpec.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CompilerSpec.js b/test/CompilerSpec.js
index f1e1c607..b1a881fb 100644
--- a/test/CompilerSpec.js
+++ b/test/CompilerSpec.js
@@ -162,4 +162,10 @@ describe('compiler', function(){
scope = compile('A---B---C===D');
expect(sortedHtml(scope.$element)).toEqual('<div>A<hr></hr>B<hr></hr>C<p></p>D</div>');
});
+
+ it('should add class for namespace elements', function(){
+ scope = compile('<ng:space>abc</ng:space>');
+ var space = jqLite(scope.$element[0].firstChild);
+ expect(space.hasClass('ng-space')).toEqual(true);
+ });
});