Changeset 363

Show
Ignore:
Timestamp:
05/04/08 09:25:51 (2 weeks ago)
Author:
ingy
Message:
...
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/ingy/pQuery/lib/pQuery.pm

    r361 r363  
    390390 
    391391my $expr = { 
     392    # XXX Can't figure out how to create tests for these yet :( 
     393    ""  => sub { 
     394        die 'pQuery selector error #1001. Please notify ingy@cpan.org'; 
     395    }, 
     396    "#" => sub { 
     397        die 'pQuery selector error #1002. Please notify ingy@cpan.org'; 
     398    }, 
    392399    ":" => { 
    393400        # Position Checks 
     
    427434        contains => sub { return index(pQuery($_[0])->text, $_[2][3]) >= 0 }, 
    428435 
     436# XXX Finish porting these if it makes sense... 
    429437#             // Visibility 
    430438#             visible: function(a){return "hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";}, 
     
    699707        } 
    700708        elsif ($m->[1] eq ":" && $m->[2] eq "nth-child") { 
    701             # XXX - Finish porting this! 
     709            # XXX - Finish porting this. Not sure how useful it is though... 
    702710        } 
    703711        else { 
  • trunk/src/ingy/pQuery/t/selectors.t

    r361 r363  
    1 use t::TestpQuery tests => 22
     1use t::TestpQuery tests => 23
    22 
    33use pQuery; 
     
    6565    'Two Headers'; 
    6666 
     67is pQuery("table#table1")->size, 1, 'id after other selector';