diff options
| author | Misko Hevery | 2011-12-14 09:28:35 +0100 | 
|---|---|---|
| committer | Misko Hevery | 2012-01-25 11:46:35 -0800 | 
| commit | 97dae0d0a0226ee527771578bfad1342d51bf4dd (patch) | |
| tree | ea99b8a160a88441c6e88d6c2ad093ab1a347820 /test/jqLiteSpec.js | |
| parent | 84823b2eff21060c0883f6b4da5573380381c1a2 (diff) | |
| download | angular.js-97dae0d0a0226ee527771578bfad1342d51bf4dd.tar.bz2 | |
feat(jqLite): add contents()
Diffstat (limited to 'test/jqLiteSpec.js')
| -rw-r--r-- | test/jqLiteSpec.js | 10 | 
1 files changed, 10 insertions, 0 deletions
| 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('<div>').html('before-<div></div>after-<span></span>'); +      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('<div>'); | 
