Module:Protection banner/config/testcases: Difference between revisions

Content deleted Content added
m Reverted to revision 728406312 by Andy M. Wang (talk). (TW)
rv to 2014. unclear why not working
Line 184:
 
function suite:testCategory_edit_semi_file_vandalism_all()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected filesimages', d.edit, d.semi, 6, d.vand, nil)
end
 
function suite:testCategory_edit_semi_wikipedia_vandalism_all()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected project pages', d.edit, d.semi, 4, d.vand, nil)
end
 
function suite:testCategory_edit_semi_help_vandalism_all()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected project pages', d.edit, d.semi, 12, d.vand, nil)
end
 
function suite:testCategory_edit_semi_portal_vandalism_all()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected portals', d.edit, d.semi, 100, d.vand, nil)
end
 
Line 204:
 
function suite:testCategory_edit_semi_talk_vandalism_all()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected talk pages', d.edit, d.semi, 1, d.vand, nil)
end
 
Line 220:
 
function suite:testCategory_edit_semi_file_vandalism_temp()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected filesimages', d.edit, d.semi, 6, d.vand, d.temp)
end
 
function suite:testCategory_edit_semi_wikipedia_vandalism_temp()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected project pages', d.edit, d.semi, 4, d.vand, d.temp)
end
 
function suite:testCategory_edit_semi_help_vandalism_temp()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected project pages', d.edit, d.semi, 12, d.vand, d.temp)
end
 
function suite:testCategory_edit_semi_portal_vandalism_temp()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected portals', d.edit, d.semi, 100, d.vand, d.temp)
end
 
Line 240:
 
function suite:testCategory_edit_semi_talk_vandalism_temp()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected talk pages', d.edit, d.semi, 1, d.vand, d.temp)
end
 
Line 260:
 
function suite:testCategory_edit_full_file_vandalism_all()
self:assertProtectionCategoryEquals('WikipediaProtected fully-protected filesimages', d.edit, d.full, 6, d.vand, nil)
end
 
function suite:testCategory_edit_full_wikipedia_vandalism_all()
self:assertProtectionCategoryEquals('Wikipedia fully-protectedProtected project pages', d.edit, d.full, 4, d.vand, nil)
end
 
function suite:testCategory_edit_full_help_vandalism_all()
self:assertProtectionCategoryEquals('Wikipedia fully-protectedProtected project pages', d.edit, d.full, 12, d.vand, nil)
end
 
Line 276:
 
function suite:testCategory_edit_full_template_vandalism_all()
self:assertProtectionCategoryEquals('Wikipedia fully-protected templates', d.edit, d.full, 10, d.vand, nil)
end
 
function suite:testCategory_edit_full_talk_vandalism_all()
self:assertProtectionCategoryEquals('Wikipedia fully-protectedProtected talk pages', d.edit, d.full, 1, d.vand, nil)
end
 
Line 296:
 
function suite:testCategory_edit_full_file_vandalism_temp()
self:assertProtectionCategoryEquals('WikipediaProtected fully-protected filesimages', d.edit, d.full, 6, d.vand, d.temp)
end
 
function suite:testCategory_edit_full_wikipedia_vandalism_temp()
self:assertProtectionCategoryEquals('Wikipedia fully-protectedProtected project pages', d.edit, d.full, 4, d.vand, d.temp)
end
 
function suite:testCategory_edit_full_help_vandalism_temp()
self:assertProtectionCategoryEquals('Wikipedia fully-protectedProtected project pages', d.edit, d.full, 12, d.vand, d.temp)
end
 
Line 312:
 
function suite:testCategory_edit_full_template_vandalism_temp()
self:assertProtectionCategoryEquals('Wikipedia fully-protected templates', d.edit, d.full, 10, d.vand, d.temp)
end
 
function suite:testCategory_edit_full_talk_vandalism_temp()
self:assertProtectionCategoryEquals('Wikipedia fully-protectedProtected talk pages', d.edit, d.full, 1, d.vand, d.temp)
end
 
Line 412:
 
function suite:testCategory_edit_full_template_all_all()
self:assertProtectionCategoryEquals('Wikipedia fully-protected templates', d.edit, d.full, 10, nil, nil)
end
 
function suite:testCategory_edit_full_template_all_temp()
self:assertProtectionCategoryEquals('Wikipedia fully-protected templates', d.edit, d.full, 10, nil, d.temp)
end
 
function suite:testCategory_edit_template_template_all_all()
self:assertProtectionCategoryEquals('Wikipedia template-protected templates', d.edit, d.template, 10, nil, nil)
end
 
function suite:testCategory_edit_template_template_all_temp()
self:assertProtectionCategoryEquals('Wikipedia template-protected templates', d.edit, d.template, 10, nil, d.temp)
end
 
Line 433:
function suite:testCategory_edit_full_template_all_temp()
self:assertProtectionCategoryEquals('Wikipedia move-protected templates', d.move, d.full, 10, nil, d.temp)
end
 
--------------------------------------------------------------------------------
-- Categories: module
--------------------------------------------------------------------------------
 
function suite:testCategory_edit_semi_module_all_all()
self:assertProtectionCategoryEquals('Wikipedia semi-protected modules', d.edit, d.semi, 828, d.indef, nil)
end
 
function suite:testCategory_edit_semi_module_all_temp()
self:assertProtectionCategoryEquals('Wikipedia semi-protected modules', d.edit, d.semi, 828, nil, d.temp)
end
 
function suite:testCategory_edit_full_module_all_all()
self:assertProtectionCategoryEquals('Wikipedia fully-protected modules', d.edit, d.full, 828, nil, nil)
end
 
function suite:testCategory_edit_full_module_all_temp()
self:assertProtectionCategoryEquals('Wikipedia fully-protected modules', d.edit, d.full, 828, nil, d.temp)
end
 
function suite:testCategory_edit_template_module_all_all()
self:assertProtectionCategoryEquals('Wikipedia template-protected modules', d.edit, d.template, 828, nil, nil)
end
 
function suite:testCategory_edit_template_module_all_temp()
self:assertProtectionCategoryEquals('Wikipedia template-protected modules', d.edit, d.template, 828, nil, d.temp)
end
 
Line 680 ⟶ 652:
 
function suite:testCategory_edit_semi_file_all_indef()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected filesimages', d.edit, d.semi, 6, nil, d.indef)
end
 
function suite:testCategory_edit_semi_wikipedia_all_indef()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected project pages', d.edit, d.semi, 4, nil, d.indef)
end
 
function suite:testCategory_edit_semi_help_all_indef()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected project pages', d.edit, d.semi, 12, nil, d.indef)
end
 
function suite:testCategory_edit_semi_portal_all_indef()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected portals', d.edit, d.semi, 100, nil, d.indef)
end
 
Line 700 ⟶ 672:
 
function suite:testCategory_edit_semi_talk_all_indef()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected talk pages', d.edit, d.semi, 1, nil, d.indef)
end
 
Line 760 ⟶ 732:
 
function suite:testCategory_edit_semi_file_all_all()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected filesimages', d.edit, d.semi, 6, nil, nil)
end
 
function suite:testCategory_edit_semi_wikipedia_all_all()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected project pages', d.edit, d.semi, 4, nil, nil)
end
 
function suite:testCategory_edit_semi_help_all_all()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected project pages', d.edit, d.semi, 12, nil, nil)
end
 
function suite:testCategory_edit_semi_portal_all_all()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected portals', d.edit, d.semi, 100, nil, nil)
end
 
Line 784 ⟶ 756:
 
function suite:testCategory_edit_semi_talk_all_all()
self:assertProtectionCategoryEquals('Wikipedia semiSemi-protected talk pages', d.edit, d.semi, 1, nil, nil)
end
 
Line 800 ⟶ 772:
 
function suite:testCategory_edit_full_file_all_all()
self:assertProtectionCategoryEquals('WikipediaProtected fully-protected filesimages', d.edit, d.full, 6, nil, nil)
end
 
function suite:testCategory_edit_full_wikipedia_all_all()
self:assertProtectionCategoryEquals('Wikipedia fully-protectedProtected project pages', d.edit, d.full, 4, nil, nil)
end
 
function suite:testCategory_edit_full_help_all_all()
self:assertProtectionCategoryEquals('Wikipedia fully-protectedProtected project pages', d.edit, d.full, 12, nil, nil)
end
 
Line 816 ⟶ 788:
 
function suite:testCategory_edit_full_template_all_all()
self:assertProtectionCategoryEquals('Wikipedia fully-protected templates', d.edit, d.full, 10, nil, nil)
end
 
Line 824 ⟶ 796:
 
function suite:testCategory_edit_full_talk_all_all()
self:assertProtectionCategoryEquals('Wikipedia fully-protectedProtected talk pages', d.edit, d.full, 1, nil, nil)
end