Jump to content

Module:Navbar/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Galobtter (talk | contribs) at 07:03, 6 April 2018 (fix). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
--Few tests of using the _navbar function directly, as they won't be caught in tests of {{navbar}}
local p = {}
local n = require('Module:Navbar')
local n = require('Module:Navbar/sandbox')

function p.main()
	n._navbar({collapsible = 'yes', template =  'V/doc'})
	ns._navbar({collapsible = 'yes', template = 'V/doc'})
	
	n._navbar({collapsible = 'yes', template = 'V/doc', 'h', 'm', ''})
	ns._navbar({collapsible = 'yes', template = 'V/doc', 'h', 'm', ''})
	
	n._navbar({collapsible = 'yes', 'V/doc', 'h', 'm'})
	ns._navbar({collapsible = 'yes', 'V/doc', 'h', 'm'})
end
return p