You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.1 KiB

local function createDummyFrame(...)
local dummyFrame = {
args = { ... }, -- For debugging purposes only
}
-- No actual UI testing should be needed, at least for the time being...
function dummyFrame.SetScript(...)
print("[SetScript] NYI", ...)
end
function dummyFrame.Show(...)
print("[Show] NYI", ...)
end
function dummyFrame.Hide(...)
print("[Hide] NYI", ...)
end
function dummyFrame.IsShown(...)
print("[IsShown] NYI", ...)
end
function dummyFrame.RegisterEvent(...)
print("[RegisterEvent] NYI", ...)
end
function dummyFrame.UnregisterAllEvents(...)
print("[UnregisterAllEvents] NYI", ...)
end
return dummyFrame
end
_G.CreateFrame = function(...)
print("[CreateFrame] NYI", ...)
return createDummyFrame()
end
_G.EnableAddOn = function(...)
print("[EnableAddOn] NYI", ...)
end
_G.IsAddOnLoaded = function(...)
print("[IsAddOnLoaded] NYI", ...)
end
_G.GetChannelList = function(...)
print("[GetChannelList] NYI", ...)
end
_G.GetLocale = function()
return "enUS" -- For now...
end