"Fix" the ImageWidget test

reviewable/pr9208/r1
NiLuJe 2 years ago
parent 6ea292ef13
commit d3964bb4a0

@ -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)

Loading…
Cancel
Save