Changeset 328

Show
Ignore:
Timestamp:
02/26/08 12:37:20 (3 months ago)
Author:
ingy
Message:
Test fixes
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/ingy/pQuery/MANIFEST

    r324 r328  
    2222README 
    2323t/contructors.t 
    24 t/document1 
     24t/document1.html 
    2525t/each.t 
    2626t/find.t 
    2727t/html.t 
     28t/text.t 
  • trunk/src/ingy/pQuery/t/contructors.t

    r324 r328  
    1 use Test::More tests => 5
     1use Test::More tests => 7
    22 
    33use pQuery; 
    4 use XXX; 
    54 
    65my $p1 = pQuery; 
     
    1413is scalar(@$p2), 6, 'Object has six elements'; 
    1514is $p2->[2], 7, 'Check value of a element'; 
     15 
     16my $p3 = pQuery('<ul><li>one</li><li>two</li></ul>'); 
     17 
     18is ref($p3), 'pQuery', 'HTML object created'; 
     19is scalar(@$p3), 1, 'Object has six elements'; 
     20 
  • trunk/src/ingy/pQuery/t/each.t

    r324 r328  
    55use pQuery; 
    66 
    7 open FILE, 't/document1' or die $!; 
     7open FILE, 't/document1.html' or die $!; 
    88my $html = do {local $/; <FILE>}; 
    99close FILE; 
  • trunk/src/ingy/pQuery/t/find.t

    r324 r328  
    55use pQuery; 
    66 
    7 open FILE, 't/document1' or die $!; 
     7open FILE, 't/document1.html' or die $!; 
    88my $html = do {local $/; <FILE>}; 
    99close FILE; 
  • trunk/src/ingy/pQuery/t/html.t

    r324 r328  
    77is pQuery->html, undef, "HTML of empty object is undef"; 
    88 
    9 open FILE, 't/document1' or die $!; 
     9open FILE, 't/document1.html' or die $!; 
    1010my $html = do {local $/; <FILE>}; 
    1111close FILE;