From: Oliver Charles Date: Wed, 24 Mar 2010 23:38:51 +0000 (+0000) Subject: Failing test for doctypes. X-Git-Tag: release_0.009004~67 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8b08aee02561471ecab4cb5bfce2d7565b491d3f;hp=4b4f6408880e2de12c1861e654233bdeb5a10236;p=catagits%2FHTML-Zoom.git Failing test for doctypes. Failing test by purge, I have reverted the changes to synopsis.t though. --- diff --git a/t/synopsis.t b/t/synopsis.t index 8a3ac11..4089bf9 100644 --- a/t/synopsis.t +++ b/t/synopsis.t @@ -1,71 +1,3 @@ -use strict; -use warnings FATAL => 'all'; use Test::More qw(no_plan); -use HTML::Zoom; -my $template = < - - Hello people - - -

Placeholder

-
- -

Name: Bob

-

Age: 23

-
-
-
- - -HTML -my $output = HTML::Zoom - ->from_html($template) - ->select('title, #greeting')->replace_content('Hello world & dog!') - ->select('#list')->repeat_content( - [ - sub { - $_->select('.name')->replace_content('Matt') - ->select('.age')->replace_content('26') - }, - sub { - $_->select('.name')->replace_content('Mark') - ->select('.age')->replace_content('0x29') - }, - sub { - $_->select('.name')->replace_content('Epitaph') - ->select('.age')->replace_content('') - }, - ], - { repeat_between => '.between' } - ) - ->to_html; -my $expect = < - - Hello world & dog! - - -

Hello world & dog!

-
- -

Name: Matt

-

Age: 26

-
-
- -

Name: Mark

-

Age: 0x29

-
-
- -

Name: Epitaph

-

Age: <redacted>

-
- -
- - -HTML -is($output, $expect, 'Synopsis code works ok');; +fail 'You forgot to run maint/synopsis-extract. Go do that.';