Content deleted Content added
Fred Gandt (talk | contribs) fix more tests |
Fred Gandt (talk | contribs) calming the error messages down a bit + test for nonexistent page |
||
Line 7:
function p:test__no_name_param()
self:preprocess_equals('{{#invoke:GetShortDescription|main}}', '<
end
function p:test__no_name_value()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=}}', '<
end
Line 24:
function p:test__no_fallback_value()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=User:Fred Gandt/sandbox/no explicit short description|fallback=}}', "")
end
--[[ nonexistent page name ]]
function p:test__nonexistent_page_name()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=User:Fred Gandt/nonexistent page}}', '<span style="color:#d33">[[Module:GetShortDescription]] could not getContent of [[:User:Fred Gandt/nonexistent page|User:Fred Gandt/nonexistent page]]</span>', {combined = 1})
end
|