Module:Navbar/testcases
Appearance
![]() | This is the test cases page for the module Module:Navbar. Results of the test cases. |
--Quick and few tests of using the _navbar function directly, as they won't be caught in tests of {{navbar}}localp={}localn=require('Module:Navbar')localns=require('Module:Navbar/sandbox')require('strict')--make sure no globalsfunctionp.main()localout={}fori=1,2dolocalk={'yes',nil}table.insert(out,{n._navbar({collapsible=k[i],template='V/doc'}),ns._navbar({collapsible=k[i],template='V/doc'}),'<br/>----',n._navbar({collapsible=k[i],template='V/doc','h','m',''}),ns._navbar({collapsible=k[i],template='V/doc','h','m',''}),'<br/>----',n._navbar({collapsible=k[i],'V/doc','h','m'}),ns._navbar({collapsible=k[i],'V/doc','h','m'})})endtable.insert(out,{n._navbar{mini='yes','v/doc'},ns._navbar{mini='yes','v/doc'}})returntable.concat(out[1])..table.concat(out[2])..table.concat(out[3])endreturnp