diff --git a/spec/unit/imagewidget_spec.lua b/spec/unit/imagewidget_spec.lua index 33ac3af49..5b9c5f4d7 100644 --- a/spec/unit/imagewidget_spec.lua +++ b/spec/unit/imagewidget_spec.lua @@ -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)