tests/image: comments: specs only
This commit is contained in:
1 parent
e306d5c1d7
commit
a80299dce0
27 files changed
+32
-199
No files matched your search
@@ -1,6 +1,4 @@
|
||||
-- image/ani tests: animated cursors around Pillow-written ICO / CUR frames (seq + rate, plain, cursor hotspots, INFO
|
||||
-- title) against Pillow's frame decodes and the written steps / delays; AF_ICON clear and a missing hook are
|
||||
-- UNSUPPORTED; the encoder through the ICO hook round-trips; the fuzz no-throw pass. Fixtures: tools/fixtures/ani.py.
|
||||
-- image/ani tests against Pillow (tools/fixtures/ani.py).
|
||||
local T = require("@tests/T")
|
||||
local Ani = require("@rosetta/image/ani")
|
||||
local Ico = require("@rosetta/image/ico")
|
||||
@@ -47,7 +45,6 @@ for _, c in Fx.cases do
|
||||
if c.hotspot then
|
||||
t:check(img.meta.hotspot and img.meta.hotspot.x == c.hotspot[1] and img.meta.hotspot.y == c.hotspot[2], c.name .. ": hotspot")
|
||||
end
|
||||
-- re-encode through the ICO hook
|
||||
local enc, eerr = Ani.encode(img, hooks)
|
||||
t:check(enc, c.name .. ": encode " .. tostring(eerr))
|
||||
local back = Ani.decode(Bytes.reader(enc :: buffer), hooks) :: any
|
||||
|
||||
Reference in new issue
Block a user