Changeset 12811


Ignore:
Timestamp:
10/20/11 15:21:11 (19 months ago)
Author:
OlivierRaginel
Message:

Item11189: TDD FTW! First commit the failing unit test :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UnitTestContrib/test/unit/FormattingTests.pm

    r12759 r12811  
    12761276} 
    12771277 
     1278sub test_externalLinkWithImageUrl { 
     1279    my $this     = shift; 
     1280    my $expected = <<EXPECTED; 
     1281<a href="$this->{sup}/$this->{test_web}/$this->{test_topic}" class="foswikiCurrentTopicLink" > 
     1282<img alt="foswiki-logo.gif" src="http://foswiki.org/pub/System/ProjectLogos/foswiki-logo.gif" /> 
     1283</a> 
     1284EXPECTED 
     1285 
     1286    my $actual = <<ACTUAL; 
     1287[[$this->{test_topic}][http://foswiki.org/pub/System/ProjectLogos/foswiki-logo.gif]] 
     1288ACTUAL 
     1289    $this->do_test( $expected, $actual ); 
     1290} 
     1291 
    127812921; 
Note: See TracChangeset for help on using the changeset viewer.