Skip to content

Commit

Permalink
* Elements.empty Spec
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer committed Sep 15, 2010
1 parent 84f5515 commit 11d8de7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 1.3client/Element/Element.js
Expand Up @@ -164,3 +164,14 @@ describe('Element.set("html")', function(){
});

});

describe('Elements.empty', function(){

it('should empty the Elements collection', function(){
var div = $$('div').empty();

expect(div.length).toEqual(0);
expect(div[0]).toBe(undefined);
});

});

0 comments on commit 11d8de7

Please sign in to comment.