Skip to content

Commit

Permalink
Item12051: Skip 1.2 only features in Fn_INCLUDE
Browse files Browse the repository at this point in the history
 - SECTION defaults are new to 1.2
 - Heading offsets are new to 1.2

git-svn-id: http://svn.foswiki.org/trunk@15421 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Sep 25, 2012
1 parent a0d4931 commit c7e5a51
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions UnitTestContrib/test/unit/Fn_INCLUDE.pm
Expand Up @@ -29,6 +29,23 @@ sub tear_down {
$this->SUPER::tear_down();
}

sub skip {
my ( $this, $test ) = @_;

return $this->SUPER::skip_test_if(
$test,
{
condition => { with_dep => 'Foswiki,<,1.2' },
tests => {
'Fn_INCLUDE::test_hassleFreeHoff' =>
'Heading offset is 1.2 feature',
'Fn_INCLUDE::test_SECTION_defaults' =>
'SECTION defaults are new to 1.2',
}
}
);
}

sub run_test_simple {
my $this = shift;
my $includeTopic = shift || $this->{test_web} . '.FirstTopic';
Expand Down

0 comments on commit c7e5a51

Please sign in to comment.