Changeset 14058
- Timestamp:
- 02/22/12 12:50:13 (5 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Release01x01/UnitTestContrib/test/unit/FormattingTests.pm
r14055 r14058 1743 1743 my $part; 1744 1744 1745 require Foswiki::Address;1746 1745 require HTML::Entities; 1747 1746 print "[[$linktext]]\n\t$html\n" if TRACE; … … 1765 1764 $expectedAddress = "$this->{test_web}.$this->{test_topic}"; 1766 1765 } 1767 $addrObj = Foswiki::Address->new( 1768 string => $address, 1769 web => $this->{test_web}, 1770 topic => $this->{test_topic}, 1771 isA => 'topic' 1772 ); 1773 $expectedAddrObj = Foswiki::Address->new( 1774 string => $expectedAddress, 1775 web => $this->{test_web}, 1776 topic => $this->{test_topic}, 1777 isA => 'topic' 1778 ); 1766 my ( $actualWeb, $actualTopic ) = 1767 Foswiki::Func::normalizeWebTopicName( $this->{test_web}, $address ); 1768 my ( $expectedWeb, $expectedTopic ) = 1769 Foswiki::Func::normalizeWebTopicName( $this->{test_web}, 1770 $expectedAddress ); 1779 1771 print "\tfrag: " 1780 1772 . ( defined $fragment ? $fragment : 'undef' ) … … 1784 1776 . ( defined $address ? $address : 'undef' ) . "\n" 1785 1777 if TRACE; 1786 $this->assert_str_equals( $expectedAddrObj->stringify(),1787 $addrObj->stringify(), "address mismatch checking [[$linktext]]" );1778 $this->assert_str_equals( "$expectedWeb.$expectedTopic", 1779 "$actualWeb.$actualTopic", "address mismatch checking [[$linktext]]" ); 1788 1780 $this->assert_deep_equals( $expected->{query}, $query, 1789 1781 "query mismatch checking [[$linktext]]" );
Note: See TracChangeset
for help on using the changeset viewer.
