Skip to content

Commit

Permalink
Item10987: perltidy
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@12305 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Aug 13, 2011
1 parent 346c5b9 commit ceb6613
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions UnitTestContrib/test/unit/FormDefTests.pm
Original file line number Diff line number Diff line change
Expand Up @@ -82,39 +82,39 @@ FORM

$f = $def->getField('Thetitle');
$this->ASSERT($f);
$this->assert_str_equals( 'textarea', $f->{type} );
$this->assert_str_equals( 'Thetitle', $f->{name} );
$this->assert_str_equals( 'textarea', $f->{type} );
$this->assert_str_equals( 'Thetitle', $f->{name} );
$this->assert_str_equals( 'The title', $f->{title} );
$this->assert_str_equals( 'FormTest', $f->{definingTopic} );
$this->assert_str_equals( 'FormTest', $f->{definingTopic} );

#SMELL: not what I expected to see!
#SMELL: not what I expected to see!
$f = $def->getField('NOPTMLDoNotLink');
$this->ASSERT($f);
$this->assert_str_equals( 'textarea', $f->{type} );
$this->assert_str_equals( 'NOPTMLDoNotLink', $f->{name} );
$this->assert_str_equals( 'textarea', $f->{type} );
$this->assert_str_equals( 'NOPTMLDoNotLink', $f->{name} );
$this->assert_str_equals( '%NOP%TMLDoNotLink', $f->{title} );
$this->assert_str_equals( '', $f->{definingTopic} );
$this->assert_str_equals( '', $f->{definingTopic} );

$f = $def->getField('HTMLDoNotLink');
$this->ASSERT($f);
$this->assert_str_equals( 'textarea', $f->{type} );
$this->assert_str_equals( 'HTMLDoNotLink', $f->{name} );
$this->assert_str_equals( 'textarea', $f->{type} );
$this->assert_str_equals( 'HTMLDoNotLink', $f->{name} );
$this->assert_str_equals( '<nop>HTMLDoNotLink', $f->{title} );
$this->assert_str_equals( '', $f->{definingTopic} );
$this->assert_str_equals( '', $f->{definingTopic} );

$f = $def->getField('BangDoNotLink');
$this->ASSERT($f);
$this->assert_str_equals( 'textarea', $f->{type} );
$this->assert_str_equals( 'BangDoNotLink', $f->{name} );
$this->assert_str_equals( 'textarea', $f->{type} );
$this->assert_str_equals( 'BangDoNotLink', $f->{name} );
$this->assert_str_equals( '!BangDoNotLink', $f->{title} );
$this->assert_str_equals( '', $f->{definingTopic} );
$this->assert_str_equals( '', $f->{definingTopic} );

$f = $def->getField('DoLink');
$this->ASSERT($f);
$this->assert_str_equals( 'textarea', $f->{type} );
$this->assert_str_equals( 'DoLink', $f->{name} );
$this->assert_str_equals( 'DoLink', $f->{title} );
$this->assert_str_equals( '', $f->{definingTopic} );
$this->assert_str_equals( 'DoLink', $f->{name} );
$this->assert_str_equals( 'DoLink', $f->{title} );
$this->assert_str_equals( '', $f->{definingTopic} );

return;
}
Expand Down Expand Up @@ -272,8 +272,8 @@ FORM
my $meta =
Foswiki::Meta->load( $this->{session}, $this->{test_web}, 'SplodgeOne' );
my $form =
Foswiki::Form->new( $this->{session}, $this->{test_web}, 'NonExistantForm',
$meta );
Foswiki::Form->new( $this->{session}, $this->{test_web},
'NonExistantForm', $meta );
my $f = $form->getField('Ecks');
$this->assert_str_equals( '', $f->getDefaultValue() );
$this->assert_str_equals( 'Ecks', $f->{name} );
Expand Down

0 comments on commit ceb6613

Please sign in to comment.