Ignore:
Timestamp:
11/27/08 23:50:20 (3 years ago)
Author:
KennethLavrsen
Message:

Item327: Rebranding TablePlugin part 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TablePlugin/test/unit/TablePlugin/TablePluginTests.pm

    r549 r1026  
    55package TablePluginTests; 
    66 
    7 use base qw( TWikiFnTestCase ); 
    8  
    9 use TWiki; 
     7use base qw( FoswikiFnTestCase ); 
     8 
     9use Foswiki; 
    1010use Error qw( :try ); 
    1111my $TEST_WEB_NAME = 'TemporaryTableFormattingTestWebTableFormatting'; 
     
    2121    $this->SUPER::set_up(); 
    2222#    $this->{sup} = $this->{twiki}->getScriptUrl(0, 'view'); 
    23     $TWiki::cfg{AntiSpam}{RobotsAreWelcome} = 1; 
    24     $TWiki::cfg{AntiSpam}{EmailPadding} = 'STUFFED'; 
    25     $TWiki::cfg{AllowInlineScript} = 1; 
     23    $Foswiki::cfg{AntiSpam}{RobotsAreWelcome} = 1; 
     24    $Foswiki::cfg{AntiSpam}{EmailPadding} = 'STUFFED'; 
     25    $Foswiki::cfg{AllowInlineScript} = 1; 
    2626    $ENV{SCRIPT_NAME} = ''; #  required by fake sort URLs in expected text 
    2727} 
     
    246246    my $cgi = $this->{request}; 
    247247    my $url = $cgi->url(-absolute => 1); 
    248     my $pubUrlTWikiWeb = TWiki::Func::getPubUrlPath() . '/TWiki'; 
     248    my $pubUrlSystemWeb = Foswiki::Func::getPubUrlPath() . '/System'; 
    249249     
    250250    my $actual = <<ACTUAL; 
     
    271271                        <th bgcolor="#687684" valign="top" class="twikiTableCol0 twikiFirstCol"> <a rel="nofollow" href="$url/$TEST_WEB_NAME/TestTopicTableFormatting?sortcol=0;table=1;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Title</font></a> </th> 
    272272                        <th bgcolor="#687684" valign="top" class="twikiTableCol1"> <a rel="nofollow" href="$url/$TEST_WEB_NAME/TestTopicTableFormatting?sortcol=1;table=1;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Date</font></a> </th> 
    273                         <th bgcolor="#334455" valign="top" class="twikiTableCol2 twikiSortedDescendingCol twikiSortedCol"> <a rel="nofollow" href="$url/$TEST_WEB_NAME/TestTopicTableFormatting?sortcol=2;table=1;up=2#sorted_table" title="Sort by this column"><font color="#ffffff">Size</font></a><span class="tableSortIcon tableSortDown"><img width="11" alt="Sorted descending" src="$pubUrlTWikiWeb/DocumentGraphics/tablesortdown.gif" title="Sorted descending" height="13" border="0" /></span> </th> 
     273                        <th bgcolor="#334455" valign="top" class="twikiTableCol2 twikiSortedDescendingCol twikiSortedCol"> <a rel="nofollow" href="$url/$TEST_WEB_NAME/TestTopicTableFormatting?sortcol=2;table=1;up=2#sorted_table" title="Sort by this column"><font color="#ffffff">Size</font></a><span class="tableSortIcon tableSortDown"><img width="11" alt="Sorted descending" src="$pubUrlSystemWeb/DocumentGraphics/tablesortdown.gif" title="Sorted descending" height="13" border="0" /></span> </th> 
    274274                        <th bgcolor="#687684" valign="top" class="twikiTableCol3 twikiLastCol"> <a rel="nofollow" href="$url/$TEST_WEB_NAME/TestTopicTableFormatting?sortcol=3;table=1;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Span date</font></a> </th> 
    275275                </tr> 
     
    324324    my $cgi = $this->{request}; 
    325325    my $url = $cgi->url(-absolute => 1); 
    326     my $pubUrlTWikiWeb = TWiki::Func::getPubUrlPath() . '/TWiki'; 
     326    my $pubUrlSystemWeb = Foswiki::Func::getPubUrlPath() . '/System'; 
    327327     
    328328    my $actual = <<ACTUAL; 
     
    350350                        <th bgcolor="#687684" valign="top" class="twikiTableCol1"> <a rel="nofollow" href="$url/$TEST_WEB_NAME/TestTopicTableFormatting?sortcol=1;table=1;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Date</font></a> </th> 
    351351                        <th bgcolor="#687684" valign="top" class="twikiTableCol2"> <a rel="nofollow" href="$url/$TEST_WEB_NAME/TestTopicTableFormatting?sortcol=2;table=1;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Size</font></a> </th> 
    352                         <th bgcolor="#334455" valign="top" class="twikiTableCol3 twikiSortedDescendingCol twikiSortedCol twikiLastCol"> <a rel="nofollow" href="$url/$TEST_WEB_NAME/TestTopicTableFormatting?sortcol=3;table=1;up=2#sorted_table" title="Sort by this column"><font color="#ffffff">Span date</font></a><span class="tableSortIcon tableSortDown"><img width="11" alt="Sorted descending" src="$pubUrlTWikiWeb/DocumentGraphics/tablesortdown.gif" title="Sorted descending" height="13" border="0" /></span> </th> 
     352                        <th bgcolor="#334455" valign="top" class="twikiTableCol3 twikiSortedDescendingCol twikiSortedCol twikiLastCol"> <a rel="nofollow" href="$url/$TEST_WEB_NAME/TestTopicTableFormatting?sortcol=3;table=1;up=2#sorted_table" title="Sort by this column"><font color="#ffffff">Span date</font></a><span class="tableSortIcon tableSortDown"><img width="11" alt="Sorted descending" src="$pubUrlSystemWeb/DocumentGraphics/tablesortdown.gif" title="Sorted descending" height="13" border="0" /></span> </th> 
    353353                </tr> 
    354354        </thead> 
Note: See TracChangeset for help on using the changeset viewer.