跳转到内容

Module talk:Protection banner/testcases

页面内容不支持其他语言。
添加话题
維基文庫,自由的圖書館

N 27 tests failed.

Name Expected Actual
Yes testBannerNew
Yes testBannerTemplateNewCfg
Yes testBannerTemplateNewImageDefault
Yes testBannerTemplateNewImageIndefTemplateOrModule
Yes testBannerTemplateNewImageUsesIndefReason
Yes testBannerTemplateRenderImageAlt
Yes testBannerTemplateRenderImageCaption
Yes testBannerTemplateRenderImageCustomWidth
Yes testBannerTemplateRenderImageDefault
Yes testBannerTemplateRenderImageDefaultNoConfig
Yes testBannerTemplateRenderImageDefaultWidth
Yes testBannerTemplateRenderImageFilename
Yes testBannerTemplateRenderImageLink
Yes testBannerToString
Yes testBannerToStringError
N testBlurbFormatDateCustom 1970 1970 January January 1 1970 1970 1月 1月 1
Yes testBlurbFormatDateError
N testBlurbFormatDateStandard 1 January 1970 1 1月 1970
Yes testBlurbGetExpandedMessage
Yes testBlurbMakeBannerTextBadFunction
Yes testBlurbMakeBannerTextBadInput
Yes testBlurbMakeBannerTextGoodFunction
Yes testBlurbMakeBannerTextGoodInput
Yes testBlurbMakeBannerTextString
N testBlurbMakeCurrentVersionParameterEdit [//en.wikipedia.org/w/index.php?title=User%3AExample&action=history edit display] [//zh.wikisource.org/w/index.php?title=User%3AExample&action=history edit display]
N testBlurbMakeCurrentVersionParameterMove [//en.wikipedia.org/w/index.php?title=Special%3ALog&page=User%3AExample&type=move move display] [//zh.wikisource.org/w/index.php?title=Special%3ALog&page=User%3AExample&type=move move display]
N testBlurbMakeEditRequestParameterLevels Lua error -- Module:Protection_banner/testcases:1208: attempt to call method '_makeEditRequestParameter' (a nil value)
N testBlurbMakeEditRequestParameterLink Lua error -- Module:Protection_banner/testcases:1223: attempt to call method '_makeEditRequestParameter' (a nil value)
Yes testBlurbMakeExpiryParameterOther
Yes testBlurbMakeExpiryParameterTemp
Yes testBlurbMakeExplanationBlurbParameter
Yes testBlurbMakeExplanationBlurbParameterSpecialCases
Yes testBlurbMakeImageLinkParameter
Yes testBlurbMakeIntroBlurbParameter
Yes testBlurbMakeIntroFragmentParameter
Yes testBlurbMakeProtectionBlurbParameter
Yes testBlurbMakeProtectionDateParameter
Yes testBlurbMakeProtectionLevelParameter
N testBlurbMakeProtectionLogParameterPC Module:Protection_banner/testcases:1566: Failed to find pattern "^%[//en%.wikipedia%.org/w/index%.php?" in string "[//zh.wikisource.org/w/index.php?title=Special%3ALog&page=User%3AExample&type=stable the key is pc-log-display]"
N testBlurbMakeProtectionLogParameterProtection Module:Protection_banner/testcases:1599: Failed to find pattern "^%[//en%.wikipedia%.org/w/index%.php?" in string "[//zh.wikisource.org/w/index.php?title=Special%3ALog&page=User%3AExample&type=protect the key is protection-log-display]"
Yes testBlurbMakeTalkPageParameter
Yes testBlurbMakeTooltipBlurbParameter
Yes testBlurbMakeTooltipFragmentParameter
N testBlurbMakeVandalTemplateParameter Lua error -- package.lua:80: module 'Module:Vandal-m' not found
Yes testBlurbNew
Yes testBlurbSubstituteParameters
Yes testMainHasOutput
Yes testMainNoWrapper
Yes testMainWrapper
Yes testMainWrapperOverride
Yes testMainWrapperSandbox
Yes testPadlockNew
Yes testPadlockNewIndicators
N testPadlockToString Module:Protection_banner/testcases:198: Failed to find pattern "^%cUNIQ.-QINU%c$" in string "'"`UNIQ--nowiki-00000000-QINU`"''"`UNIQ--indicator-00000001-QINU`"'"
Yes testPagetypeParameter
N testProtectionActionAutoreview Lua error -- Module:Effective_protection_level:16: attempt to index field 'FlaggedRevs' (a nil value)
Yes testProtectionActionEdit
Yes testProtectionActionError
Yes testProtectionActionMove
Yes testProtectionActionUpload
N testProtectionBadExpiry Module:Protection_banner/testcases:44: Failed to find plain string "invalid expiry date: foobar" in string "Module:Effective_protection_level:16: attempt to index field 'FlaggedRevs' (a nil value)"
Yes testProtectionBadProtectionDate
Yes testProtectionBadReason
Yes testProtectionCategoryAllAlls
Yes testProtectionCategoryExpiryIndef
Yes testProtectionCategoryExpiryTemp
Yes testProtectionCategoryNamespaceFragment
Yes testProtectionCategoryNoExpiry
Yes testProtectionCategoryNoFalseMatches
Yes testProtectionCategoryNoMatch
Yes testProtectionCategoryNotProtected
Yes testProtectionCategoryPrecedence1
Yes testProtectionCategoryPrecedence10
Yes testProtectionCategoryPrecedence2
Yes testProtectionCategoryPrecedence3
Yes testProtectionCategoryPrecedence4
Yes testProtectionCategoryPrecedence5
Yes testProtectionCategoryPrecedence6
Yes testProtectionCategoryPrecedence7
Yes testProtectionCategoryPrecedence8
Yes testProtectionCategoryPrecedence9
Yes testProtectionCategoryProtected
Yes testProtectionCategoryTalk
Yes testProtectionExpiryIndef
N testProtectionExpiryTemp Lua error -- Module:Effective_protection_level:16: attempt to index field 'FlaggedRevs' (a nil value)
Yes testProtectionFull
Yes testProtectionIsIncorrectFalse1
Yes testProtectionIsIncorrectFalse2
Yes testProtectionIsIncorrectTrue1
Yes testProtectionIsIncorrectTrue2
Yes testProtectionIsProtectedFalse
Yes testProtectionIsProtectedFalse1
Yes testProtectionIsProtectedFalse2
Yes testProtectionIsProtectedTrue
Yes testProtectionIsTemplateProtectedNonTemplateFalse1
Yes testProtectionIsTemplateProtectedNonTemplateFalse2
Yes testProtectionIsTemplateProtectedNonTemplateFalse3
Yes testProtectionIsTemplateProtectedNonTemplateFalse4
Yes testProtectionIsTemplateProtectedNonTemplateFalse5
Yes testProtectionIsTemplateProtectedNonTemplateTrue1
Yes testProtectionIsTemplateProtectedNonTemplateTrue2
Yes testProtectionMakeCategoryLinksAllAbsent
N testProtectionMakeCategoryLinksAllPresent [[Category:Protection category|Example]][[Category:Expiry category|Example]][[Category:Incorrect category|Example]][[Category:Template category|Example]] [[Category:Protection category|Example]][[Category:Incorrect category|Example]][[Category:Template category|Example]]
Yes testProtectionMasterBannerConfigFields
Yes testProtectionMasterBannerConfigPrecedence1
Yes testProtectionMasterBannerConfigPrecedence2
Yes testProtectionMasterBannerConfigPrecedence3
Yes testProtectionMasterBannerConfigPrecedence4
N testProtectionNeedsExpiryFalse1 Lua error -- Module:Protection_banner/testcases:880: attempt to call method 'needsExpiry' (a nil value)
N testProtectionNeedsExpiryFalse2 Lua error -- Module:Protection_banner/testcases:891: attempt to call method 'needsExpiry' (a nil value)
N testProtectionNeedsExpiryFalse3 Lua error -- Module:Protection_banner/testcases:903: attempt to call method 'needsExpiry' (a nil value)
N testProtectionNeedsExpiryFalse4 Lua error -- Module:Protection_banner/testcases:916: attempt to call method 'needsExpiry' (a nil value)
N testProtectionNeedsExpiryTrue1 Lua error -- Module:Protection_banner/testcases:927: attempt to call method 'needsExpiry' (a nil value)
N testProtectionNeedsExpiryTrue2 Lua error -- Module:Protection_banner/testcases:940: attempt to call method 'needsExpiry' (a nil value)
Yes testProtectionNoAction
N testProtectionNoExpiry Lua error -- Module:Effective_protection_level:16: attempt to index field 'FlaggedRevs' (a nil value)
Yes testProtectionNoProtectionDate
Yes testProtectionNoReason
N testProtectionPastExpiry Lua error -- Module:Effective_protection_level:16: attempt to index field 'FlaggedRevs' (a nil value)
Yes testProtectionProtectionDateIndef
Yes testProtectionProtectionDateTemp
Yes testProtectionReason
Yes testProtectionReasonLowerCase
Yes testProtectionSemi
Yes testProtectionSemiMove
Yes testProtectionTemplate
N testProtectionTitleBlacklist templateeditor *
Yes testProtectionUnprotected
Yes test_mainCategories
N test_mainError invalid expiry date: foo Module:Effective_protection_level:16: attempt to index field 'FlaggedRevs' (a nil value)
Yes test_mainLarge1
Yes test_mainLarge2
Yes test_mainLarge3
Yes test_mainLarge4
Yes test_mainNoBanner
N test_mainSmall1 Module:Protection_banner/testcases:198: Failed to find pattern "^%cUNIQ.-QINU%c$" in string "'"`UNIQ--nowiki-00000002-QINU`"''"`UNIQ--indicator-00000003-QINU`"'"
N test_mainSmall2 Module:Protection_banner/testcases:198: Failed to find pattern "^%cUNIQ.-QINU%c$" in string "'"`UNIQ--nowiki-00000004-QINU`"''"`UNIQ--indicator-00000005-QINU`"'"
N test_mainSmall3 Module:Protection_banner/testcases:198: Failed to find pattern "^%cUNIQ.-QINU%c$" in string "'"`UNIQ--nowiki-00000006-QINU`"''"`UNIQ--indicator-00000007-QINU`"'"

发起有关Module:Protection banner/testcases的讨论

发起讨论