mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
"Fix" the ImageWidget test
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user