[libhtml-tidy-perl] 06/08: Update t-don-t-assert-that-tidy-will-add-a-HTML-3.2-doctype.patch for new test
Florian Schlichting
fsfs at moszumanska.debian.org
Sun Sep 24 12:36:34 UTC 2017
This is an automated email from the git hooks/post-receive script.
fsfs pushed a commit to branch master
in repository libhtml-tidy-perl.
commit e2a524b7b634dbc651fe4bb8f516d07422c7ad95
Author: Florian Schlichting <fsfs at debian.org>
Date: Sun Sep 24 14:30:25 2017 +0200
Update t-don-t-assert-that-tidy-will-add-a-HTML-3.2-doctype.patch for new test
---
...sert-that-tidy-will-add-a-HTML-3.2-doctype.patch | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/debian/patches/t-don-t-assert-that-tidy-will-add-a-HTML-3.2-doctype.patch b/debian/patches/t-don-t-assert-that-tidy-will-add-a-HTML-3.2-doctype.patch
index abbaffc..c7096c2 100644
--- a/debian/patches/t-don-t-assert-that-tidy-will-add-a-HTML-3.2-doctype.patch
+++ b/debian/patches/t-don-t-assert-that-tidy-will-add-a-HTML-3.2-doctype.patch
@@ -10,11 +10,9 @@ Signed-off-by: Simon McVittie <smcv at debian.org>
t/wordwrap.t | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
-diff --git a/t/roundtrip.t b/t/roundtrip.t
-index 2590795..68be07f 100644
--- a/t/roundtrip.t
+++ b/t/roundtrip.t
-@@ -26,12 +26,13 @@ my @messages = $tidy->messages( $clean );
+@@ -26,12 +26,13 @@
is_deeply( \@messages, [], q{The cleaned stuff shouldn't have any errors} );
$clean =~ s/"((HTML Tidy|tidyp).+w3\.org|HTML Tidy for HTML5[^"]+)"/"Tidy"/;
@@ -29,11 +27,9 @@ index 2590795..68be07f 100644
<html>
<head>
<meta name="generator" content="Tidy">
-diff --git a/t/wordwrap.t b/t/wordwrap.t
-index 717d895..3f4daaf 100644
--- a/t/wordwrap.t
+++ b/t/wordwrap.t
-@@ -11,7 +11,7 @@ my $input=q{Here's some <B>ed and <BR/>eakfest MarkUp};
+@@ -11,7 +11,7 @@
my $expected=<<'EOD';
<!DOCTYPE
@@ -42,7 +38,7 @@ index 717d895..3f4daaf 100644
<html>
<head>
<title>
-@@ -32,6 +32,7 @@ my $cfg = 't/wordwrap.cfg';
+@@ -32,6 +32,7 @@
my $tidy = HTML::Tidy->new( {config_file => $cfg} );
my $result = $tidy->clean( $input );
@@ -50,3 +46,14 @@ index 717d895..3f4daaf 100644
my @result = split(/\n/, $result);
is_deeply( \@result, \@expected, 'Cleaned stuff looks like what we expected');
+--- a/t/clean.t
++++ b/t/clean.t
+@@ -24,7 +24,7 @@
+ );
+
+ sub _expected_empty_html {
+- return qr{<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
++ return qr{<!DOCTYPE html>
+ <html>
+ <head>
+ <meta name="generator" content="[^"]+">
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libhtml-tidy-perl.git
More information about the Pkg-perl-cvs-commits
mailing list