Skip to content

Commit

Permalink
Item11135: Sync TopicUserMapping Tests
Browse files Browse the repository at this point in the history
Release branch tests were out of date

git-svn-id: http://svn.foswiki.org/trunk@14337 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Mar 15, 2012
1 parent bc6c66e commit 4c16398
Showing 1 changed file with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,14 +287,32 @@ sub std_tests {
$this->assert_not_null($renderedMeta);

#TODO: redo this with custom tmpl and check each username
my $output = <<'THIS';
my $output;
if ( $this->check_dependency('Foswiki,>=,1.2') ) {
$output = <<'THIS';
%TMPL:P{"settmltablesummary"
SUMMARY="%MAKETEXT{"Attachments"}%"
}%<div class="foswikiAttachments">
| *I* | *%MAKETEXT{"Attachment"}%* | *%MAKETEXT{"Action"}%* | *%MAKETEXT{"Size"}%* | *%MAKETEXT{"Date"}%* | *%MAKETEXT{"Who"}%* | *%MAKETEXT{"Comment"}%* |
| %ICON{"home.org.au.png" default="else"}%<span class="foswikiHidden">png</span> | <a href="%ATTACHURLPATH%/%ENCODE{home.org.au.png}%"><noautolink>home.org.au.png</noautolink></a> | <a href="%SCRIPTURLPATH{"attach"}%/%WEB%/%TOPIC%?filename=%ENCODE{"home.org.au.png"}%;revInfo=1" title="%MAKETEXT{"change, update, previous revisions, move, delete..."}%" rel="nofollow">%MAKETEXT{"manage"}%</a> | 4 K|<span class="foswikiNoBreak">31 May 2007 - 21:58</span> |TemporaryTopicUserMappingContribTestsUsersWeb.JoeDoe | |
</div>
THIS
}
else {
$output = <<'THIS';
%TMPL:P{"settmltablesummary"
SUMMARY="%MAKETEXT{"Attachments"}%"
}%<div class="foswikiAttachments">
| *I* | *%MAKETEXT{"Attachment"}%* | *%MAKETEXT{"Action"}%* | *%MAKETEXT{"Size"}%* | *%MAKETEXT{"Date"}%* | *%MAKETEXT{"Who"}%* | *%MAKETEXT{"Comment"}%* |
| %ICON{"home.org.au.png" default="else"}%<span class="foswikiHidden">png</span> | <a href="%ATTACHURLPATH%/%ENCODE{home.org.au.png}%"><noautolink>home.org.au.png</noautolink></a> | <a href="%SCRIPTURLPATH{"attach"}%/%WEB%/%TOPIC%?filename=%ENCODE{"home.org.au.png"}%;revInfo=1" title="%MAKETEXT{"change, update, previous revisions, move, delete..."}%" rel="nofollow">%MAKETEXT{"manage"}%</a> | 4 K|<span class="foswikiNoBreak">31 May 2007 - 21:58</span> |TemporaryTopicUserMappingContribTestsUsersWeb.JoeDoe | |
</div>
THIS
}





$output =~ s/UUUUUUUUUU/$displayedName/e;
$output =~ s/%PUBURLPATH%/$Foswiki::cfg{PubUrlPath}/e;
$output =~ s/%EXPANDEDPUBURL%/$Foswiki::cfg{PubUrlPath}/e;
Expand Down

0 comments on commit 4c16398

Please sign in to comment.