public
Fork of sstephenson/prototype
Description: Prototype JavaScript framework
Homepage: http://prototypejs.org/
Clone URL: git://github.com/jdalton/prototype.git
Search Repo:
Unit tests for #10150, no patch to dom.js needed because current git repo 
has already resolved the problem
(cherry picked from commit b314d75f4966f33716b7a5f465078a45423f65b1)
jdalton (author)
Mon May 05 20:37:25 -0700 2008
savetheclocktower (committer)
Tue May 06 13:17:15 -0700 2008
commit  cd0328db5dfd8dfc5c7b1e4bab4efcc98692306a
tree    176b41cbdf010223b814e9f14275e2c2964ca6df
parent  89731f0c9b34641a9d54b8acdc2920d3c5591b9a
...
715
716
717
 
 
 
 
718
719
720
...
715
716
717
718
719
720
721
722
723
724
0
@@ -715,6 +715,10 @@
0
     
0
     $(document.body).insert(new Element('div', { id: 'impostor' }));
0
     this.assert(!$('impostor').descendantOf('ancestor'));
0
+
0
+ // test descendantOf document
0
+ this.assert($(document.body).descendantOf(document));
0
+ this.assert($(document.documentElement).descendantOf(document));
0
   },
0
   
0
   testChildOf: function() {

Comments

    No one has commented yet.