Skip to content

Commit

Permalink
Add unit tests for Element#descendantOf.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobie committed Sep 3, 2008
1 parent 6847d27 commit 919b952
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Add unit tests for Element#descendantOf. (jddalton)

* Form#serializeElements should not serialize file inputs. (kangax, Lonesome Boy)

* Fix an issue with calling Event.pointer before the DOM is loaded. (kangax, jddalton) [#4 state:resolved]
Expand Down
4 changes: 4 additions & 0 deletions test/unit/dom_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,10 @@ new Test.Unit.Runner({

$(document.body).insert(new Element('div', { id: 'impostor' }));
this.assert(!$('impostor').descendantOf('ancestor'));

// test descendantOf document
this.assert($(document.body).descendantOf(document));
this.assert($(document.documentElement).descendantOf(document));
},

testChildOf: function() {
Expand Down

0 comments on commit 919b952

Please sign in to comment.