Module:UnitTests/testcases/frame

-- -- Frame testing submodule for Module:UnitTests. -- @sumbodule -- Package variable. local p = {}

-- Some variables. local mw_getTitle = mw.title.getCurrentTitle local getCurrentFrame_getTitle = mw.getCurrentFrame:getTitle

-- Test utility. function p._test(frame) return "# " .. frame:getTitle .. "\n" .. "# " .. mw_getTitle .. "\n" .. "# " .. getCurrentFrame_getTitle .. "\n" .. "" end

-- Export submodule. return p