Skip to content

Commit

Permalink
Item13844: Unit test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
gac410 committed Nov 11, 2015
1 parent 2999dd2 commit 2a7efdb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions HistoryPlugin/test/unit/HistoryPlugin/HistoryPluginTests.pm
Expand Up @@ -316,7 +316,7 @@ sub test_header {
my $date = $this->_getDate($topicObject);

my $expected = <<EXPECTED;
<nop><h2 id="header"> header </h2>
<nop><h2> <a name="header"></a> header </h2>
r4 - $date - <a href="$url/$this->{users_web}/ScumBag">ScumBag</a><br />
r3 - $date - <a href="$url/$this->{users_web}/ScumBag">ScumBag</a><br />
r2 - $date - <a href="$url/$this->{users_web}/ScumBag">ScumBag</a><br />
Expand Down Expand Up @@ -351,7 +351,7 @@ sub test_footer {
r3 - $date - <a href="$url/$this->{users_web}/ScumBag">ScumBag</a><br />
r2 - $date - <a href="$url/$this->{users_web}/ScumBag">ScumBag</a><br />
r1 - $date - <a href="$url/$this->{users_web}/ScumBag">ScumBag</a><br />
<nop><h2 id="footer"> footer </h2>
<nop><h2> <a name="footer"></a> footer </h2>
EXPECTED

my $actual = $topicObject->expandMacros(<<'ACTUAL');
Expand Down
6 changes: 0 additions & 6 deletions UnitTestContrib/test/unit/FormattingTests.pm
Expand Up @@ -1179,12 +1179,6 @@ Space"@blahSTUFFED.com</a>',
my $actual = <<ACTUAL;
$url
ACTUAL
if ( $this->check_dependency('Foswiki,<,1.2') ) {

# URL encoding of whitespace was borked before 1.2
$expected =~ s/%0a/%20/g;
$expected =~ s/%3d/%3D/g;
}

#print STDERR "EXPECTED $expected from $actual\n";
$this->do_test( $expected, $actual );
Expand Down
8 changes: 5 additions & 3 deletions UnitTestContrib/test/unit/ZoneTests.pm
Expand Up @@ -12,9 +12,11 @@ sub set_up {
$this->SUPER::set_up();

# Disable plugins which add noise
$Foswiki::cfg{Plugins}{JQueryPlugin}{Enabled} = 0;
$Foswiki::cfg{Plugins}{TwistyPlugin}{Enabled} = 0;
$Foswiki::cfg{Plugins}{TablePlugin}{Enabled} = 0;
$Foswiki::cfg{Plugins}{JQueryPlugin}{Enabled} = 0;
$Foswiki::cfg{Plugins}{TwistyPlugin}{Enabled} = 0;
$Foswiki::cfg{Plugins}{TablePlugin}{Enabled} = 0;
$Foswiki::cfg{Plugins}{CommentPlugin}{Enabled} = 0;
$Foswiki::cfg{Plugins}{SmiliesPlugin}{Enabled} = 0;

my $query = Unit::Request->new("");
$query->path_info("/$this->{test_web}/$this->{test_topic}");
Expand Down

0 comments on commit 2a7efdb

Please sign in to comment.