Skip to content

Commit

Permalink
Item1247: fixed spurious testcase failures
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/branches/Release01x00@2997 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Mar 11, 2009
1 parent 56dcfa5 commit 3015b8e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions WysiwygPlugin/test/unit/WysiwygPlugin/WysiwygPluginTests.pm
Expand Up @@ -145,7 +145,8 @@ sub TML2HTML_test {

$this->assert(!$result, $result);
# Strip ASCII header
$this->assert_matches(qr/Content-Type: text\/plain;charset=UTF-8/, anal($out));
$this->assert_matches(qr/Content-Type: *text\/plain; *charset=UTF-8/,
$out, anal($out));
$out =~ s/^.*?\r\n\r\n//s;

$out = Encode::decode_utf8($out);
Expand Down Expand Up @@ -192,7 +193,8 @@ sub HTML2TML_test {

$this->assert(!$result, $result);
# Strip ASCII header
$this->assert_matches(qr/Content-Type: text\/plain;charset=UTF-8/,
$this->assert_matches(qr/Content-Type: *text\/plain; *charset=UTF-8/,
$out,
anal($out));
$out =~ s/^.*?\r\n\r\n//s;

Expand Down

0 comments on commit 3015b8e

Please sign in to comment.