From 755beb2b66ce9f9f9a218f2355bbaf96d94fbc15 Mon Sep 17 00:00:00 2001 From: Shyam Seshadri Date: Sat, 19 Jan 2013 10:21:17 +0530 Subject: fix(compiler): Allow startingTag method to handle text / comment nodes --- test/AngularSpec.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/AngularSpec.js') diff --git a/test/AngularSpec.js b/test/AngularSpec.js index 1ead504f..e734decf 100644 --- a/test/AngularSpec.js +++ b/test/AngularSpec.js @@ -673,6 +673,13 @@ describe('angular', function() { toBe(''); }); }); + + describe('startingTag', function() { + it('should allow passing in Nodes instead of Elements', function() { + var txtNode = document.createTextNode('some text'); + expect(startingTag(txtNode)).toBe('some text'); + }); + }); describe('snake_case', function(){ it('should convert to snake_case', function() { -- cgit v1.2.3