Author: dom Date: 2012-12-18 22:27:01 +0000 (Tue, 18 Dec 2012) New Revision: 1448
Modified: trunk/Changes trunk/t/904_leaflet.t trunk/t/905_multiple_index.t Log: Work around a "No such method textContent" bug in Test::HTML::Content when XML::LibXML is not installed (and update previous Change entry)
Modified: trunk/Changes =================================================================== --- trunk/Changes 2012-12-18 18:15:56 UTC (rev 1447) +++ trunk/Changes 2012-12-18 22:27:01 UTC (rev 1448) @@ -6,7 +6,10 @@ 0.71 ? Added scale to category/locale index maps. Fix several test failures triggered by the stricter - Test::HTML::Content (et al) found in current Debian unstable. + Test::HTML::Content (et al) mode used when XML::LibXML is + not installed + Work around a "No such method textContent" bug in + Test::HTML::Content when XML::LibXML is not installed
0.70 26 August 2012 New elements allowed in page content: span, dl, dt, dd (fixes #303).
Modified: trunk/t/904_leaflet.t =================================================================== --- trunk/t/904_leaflet.t 2012-12-18 18:15:56 UTC (rev 1447) +++ trunk/t/904_leaflet.t 2012-12-18 22:27:01 UTC (rev 1448) @@ -182,7 +182,7 @@ return_output => 1 ); SKIP: { skip "Test::HTML::Content not available", 1 unless $thc; - Test::HTML::Content::title_ok( $output, qr/Map of all nodes/, + Test::HTML::Content::tag_ok( $output, 'title', {}, qr/Map of all nodes/, "<title> correct when showing map of everything" ); } like( $output, qr/<h2>Map\s+of\s+all\s+nodes/, "...as is <h2> title" );
Modified: trunk/t/905_multiple_index.t =================================================================== --- trunk/t/905_multiple_index.t 2012-12-18 18:15:56 UTC (rev 1447) +++ trunk/t/905_multiple_index.t 2012-12-18 22:27:01 UTC (rev 1448) @@ -56,7 +56,7 @@ "Right number of nodes returned in pure category search" ); my $output = $guide->show_index( cat => "pubs", return_output => 1, noheaders => 1 ); -Test::HTML::Content::title_ok( $output, "Index of Category Pubs - Test", +Test::HTML::Content::tag_ok( $output, 'title', {}, "Index of Category Pubs - Test", "...and page title is correct" ); Test::HTML::Content::link_ok( $output, $config->script_name . "?Category_Pubs", "...and we link to the category page." ); @@ -66,7 +66,7 @@ "Right number of nodes returned in pure locale search" ); $output = $guide->show_index( loc => "waddon", return_output => 1, noheaders => 1 ); -Test::HTML::Content::title_ok( $output, "Index of Locale Waddon - Test", +Test::HTML::Content::tag_ok( $output, 'title', {}, "Index of Locale Waddon - Test", "...and page title is correct" ); Test::HTML::Content::link_ok( $output, $config->script_name . "?Locale_Waddon", "...and we link to the locale page." ); @@ -77,7 +77,7 @@ "Right number of nodes returned in category+locale search" ); $output = $guide->show_index( cat => "pubs", loc => "waddon", return_output => 1, noheaders => 1 ); -Test::HTML::Content::title_ok( $output, +Test::HTML::Content::tag_ok( $output, 'title', {}, "Index of Category Pubs and Locale Waddon - Test", "...and page title is correct" ); Test::HTML::Content::link_ok( $output, $config->script_name . "?Category_Pubs", @@ -93,7 +93,7 @@ "Right number of nodes returned in category+locale search with map" ); $output = $guide->show_index( cat => "pubs", loc => "waddon", format => "map", return_output => 1, noheaders => 1 ); -Test::HTML::Content::title_ok( $output, +Test::HTML::Content::tag_ok( $output, 'title', {}, "Map of Category Pubs and Locale Waddon - Test", "...and page title is correct" ); Test::HTML::Content::link_ok( $output, $config->script_name . "?Category_Pubs",
openguides-commits@lists.openguides.org