X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fsynopsis%2Ffilterbuilder.t;h=9fc9f413ad88b5c0484b9f05f1dd572f20a41a19;hb=f8ad684db84b3770391673ec6e740db8e8d2f994;hp=59048aee4cbfc1033baa40218973de6a65c1d35e;hpb=7af7362da1178a85c938a123ea2b9bf95d43519e;p=catagits%2FHTML-Zoom.git diff --git a/t/synopsis/filterbuilder.t b/t/synopsis/filterbuilder.t index 59048ae..9fc9f41 100644 --- a/t/synopsis/filterbuilder.t +++ b/t/synopsis/filterbuilder.t @@ -19,18 +19,22 @@ my $body = HTML::Zoom ->from_html(<

Well Now

-

Is the Time

+

Is the Time

BODY my $output = $root -->select('title') -->replace_content('Hello World') -->select('body') -->replace_content($body) -->select('p') -->set_attribute(class=>'para') -->to_html; + ->select('title') + ->replace_content('Hello World') + ->select('body') + ->replace_content($body) + ->then + ->set_attribute(class=>'main') + ->select('p') + ->set_attribute(class=>'para') + ->select('#p2') + ->set_attribute(class=>'para2') + ->to_html; my $expect = < Hello World -
+

Well Now

-

Is the Time

+

Is the Time