"Fix" the ImageWidget test

This commit is contained in:
NiLuJe
2022-06-12 23:43:03 +02:00
parent 6ea292ef13
commit d3964bb4a0

View File

@@ -12,7 +12,12 @@ describe("ImageWidget module", function()
imgw:_render()
assert(imgw._bb)
end)
it("should error out on none exist image", function()
--[[
-- NOTE: There was never actually sane error handling in there,
-- it would just crash later because of a lack of BB object.
-- We now return a checkerboard pattern on image decoding failure,
-- which also happens to make the caller's life easier.
it("should error out on missing or invalid images", function()
local imgw = ImageWidget:new{
file = "wtf.png"
}
@@ -20,4 +25,5 @@ describe("ImageWidget module", function()
imgw:_render()
end)
end)
--]]
end)