- Timestamp:
- 11/27/08 23:50:20 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TablePlugin/test/unit/TablePlugin/TablePluginTests.pm
r549 r1026 5 5 package TablePluginTests; 6 6 7 use base qw( TWikiFnTestCase );8 9 use TWiki;7 use base qw( FoswikiFnTestCase ); 8 9 use Foswiki; 10 10 use Error qw( :try ); 11 11 my $TEST_WEB_NAME = 'TemporaryTableFormattingTestWebTableFormatting'; … … 21 21 $this->SUPER::set_up(); 22 22 # $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; 26 26 $ENV{SCRIPT_NAME} = ''; # required by fake sort URLs in expected text 27 27 } … … 246 246 my $cgi = $this->{request}; 247 247 my $url = $cgi->url(-absolute => 1); 248 my $pubUrl TWikiWeb = TWiki::Func::getPubUrlPath() . '/TWiki';248 my $pubUrlSystemWeb = Foswiki::Func::getPubUrlPath() . '/System'; 249 249 250 250 my $actual = <<ACTUAL; … … 271 271 <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> 272 272 <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="$pubUrl TWikiWeb/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> 274 274 <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> 275 275 </tr> … … 324 324 my $cgi = $this->{request}; 325 325 my $url = $cgi->url(-absolute => 1); 326 my $pubUrl TWikiWeb = TWiki::Func::getPubUrlPath() . '/TWiki';326 my $pubUrlSystemWeb = Foswiki::Func::getPubUrlPath() . '/System'; 327 327 328 328 my $actual = <<ACTUAL; … … 350 350 <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> 351 351 <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="$pubUrl TWikiWeb/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> 353 353 </tr> 354 354 </thead>
Note: See TracChangeset
for help on using the changeset viewer.
