From 97dae0d0a0226ee527771578bfad1342d51bf4dd Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 14 Dec 2011 09:28:35 +0100 Subject: feat(jqLite): add contents() --- test/jqLiteSpec.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/jqLiteSpec.js') diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js index 5936395e..3abe4549 100644 --- a/test/jqLiteSpec.js +++ b/test/jqLiteSpec.js @@ -731,6 +731,16 @@ describe('jqLite', function() { }); + describe('contents', function() { + it('should select all children nodes', function() { + var root = jqLite('
').html('before-
after-'); + var contents = root.contents(); + expect(contents.length).toEqual(4); + expect(jqLite(contents[0]).text()).toEqual('before-'); + }); + }); + + describe('append', function() { it('should append', function() { var root = jqLite('
'); -- cgit v1.2.3