4 use Test::More tests => 4;
5 BEGIN {use_ok ( "HTML::TreeBuilder");}
7 my $t = HTML::TreeBuilder->new;
8 $t->parse('stuff <em name="foo">lalal</em>');
12 #these are correct tests. Of what, I'm not sure.
13 ok($c->same_as($t), "\$c is the same as \$t, according to HTML::Element");
14 ok($t->same_as($c), "\$t is the same as \$c, according to HTML::Element");
17 ok ($t->find_by_attribute('name', 'foo'), "My name is foo after delete" );