X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2FHTML5TV-hCalendar.t;fp=t%2FHTML5TV-hCalendar.t;h=1e4501e7f7f8420ce5fd5b7c757080a1c906e07b;hb=8fefe769b3e7a9d496d325e1d5a9f0e8c926af42;hp=75c095d5f237137090920a7a38277ceb2c0b4800;hpb=2023ef5c63b3438d67594b1949bb866bf7b3310a;p=HTML5TV.git diff --git a/t/HTML5TV-hCalendar.t b/t/HTML5TV-hCalendar.t index 75c095d..1e4501e 100755 --- a/t/HTML5TV-hCalendar.t +++ b/t/HTML5TV-hCalendar.t @@ -3,7 +3,7 @@ use warnings; use strict; -use Test::More tests => 8; +use Test::More tests => 10; use lib 'lib'; @@ -15,6 +15,12 @@ my $path = shift @ARGV || 'media/hCalendar.html'; ok( my $hcal = HTML5TV::hCalendar->new( $path ), "new $path" ); +ok( my $html = $hcal->as_HTML, 'as_HTML' ); +diag $html; + +ok( my $date = $hcal->dtstart_iso, 'dtstart_iso' ); +diag $date; + foreach my $class ( qw/organiser summary url location dtstart description/ ) { ok( defined( my $text = $hcal->$class ), $class ); diag "$class: $text";