Changeset 328
- Timestamp:
- 02/26/08 12:37:20 (3 months ago)
- Files:
-
- trunk/src/ingy/pQuery/MANIFEST (modified) (1 diff)
- trunk/src/ingy/pQuery/t/contructors.t (modified) (2 diffs)
- trunk/src/ingy/pQuery/t/document1.html (moved) (moved from trunk/src/ingy/pQuery/t/document1)
- trunk/src/ingy/pQuery/t/each.t (modified) (1 diff)
- trunk/src/ingy/pQuery/t/find.t (modified) (1 diff)
- trunk/src/ingy/pQuery/t/html.t (modified) (1 diff)
- trunk/src/ingy/pQuery/t/text.t (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/ingy/pQuery/MANIFEST
r324 r328 22 22 README 23 23 t/contructors.t 24 t/document1 24 t/document1.html 25 25 t/each.t 26 26 t/find.t 27 27 t/html.t 28 t/text.t trunk/src/ingy/pQuery/t/contructors.t
r324 r328 1 use Test::More tests => 5;1 use Test::More tests => 7; 2 2 3 3 use pQuery; 4 use XXX;5 4 6 5 my $p1 = pQuery; … … 14 13 is scalar(@$p2), 6, 'Object has six elements'; 15 14 is $p2->[2], 7, 'Check value of a element'; 15 16 my $p3 = pQuery('<ul><li>one</li><li>two</li></ul>'); 17 18 is ref($p3), 'pQuery', 'HTML object created'; 19 is scalar(@$p3), 1, 'Object has six elements'; 20 trunk/src/ingy/pQuery/t/each.t
r324 r328 5 5 use pQuery; 6 6 7 open FILE, 't/document1 ' or die $!;7 open FILE, 't/document1.html' or die $!; 8 8 my $html = do {local $/; <FILE>}; 9 9 close FILE; trunk/src/ingy/pQuery/t/find.t
r324 r328 5 5 use pQuery; 6 6 7 open FILE, 't/document1 ' or die $!;7 open FILE, 't/document1.html' or die $!; 8 8 my $html = do {local $/; <FILE>}; 9 9 close FILE; trunk/src/ingy/pQuery/t/html.t
r324 r328 7 7 is pQuery->html, undef, "HTML of empty object is undef"; 8 8 9 open FILE, 't/document1 ' or die $!;9 open FILE, 't/document1.html' or die $!; 10 10 my $html = do {local $/; <FILE>}; 11 11 close FILE;
