tests/ops: comments: specs only

This commit is contained in:
4DBug committed 2026-11-01 01:51:09 -05:00
1 parent 9d80ee11b9
commit 75ddfb4068
5 files changed
+7 -58

No files matched your search

+1 -5
View File
@@ -1,6 +1,4 @@
-- ops/LayerOps + codecs/image/Blend tests: blend mode formulas on single pixels against hand-computed W3C values, opacity,
-- masks, clipping, isolated vs pass-through groups, hidden layers, frames, leaves, bad arguments. (Whole-document
-- flattening against psd-tools is in tests/layered/psd.luau.)
-- ops/LayerOps + codecs/image/Blend tests against hand-computed W3C values (flattening: tests/layered/psd.luau).
local T = require("@tests/T")
local LayerOps = require("@rosetta/ops/LayerOps")
local Blend = require("@rosetta/codecs/image/Blend")
@@ -72,7 +70,6 @@ do
local r2, _, _, a2 = get(LayerOps.flatten(doc({ top })))
t:check(r2 == 255 and math.abs(a2 - 128) <= 1, "over transparent: alpha scales")
end
-- hidden layers, masks, clipping
do
local top = L("top", px(255, 0, 0, 255))
top.visible = false
@@ -124,7 +121,6 @@ do
t:check(math.abs(get(LayerOps.flatten(doc({ bottom, g }))) - 100) <= 1, "pass-through: disabled mask ignored")
g.mask = nil
end
-- frames, leaves, flattenFrames
do
local d = doc({ L("a", px(1, 2, 3, 255)) })
d.frames = { { layers = d.layers, delay = 0.1 }, { layers = { L("b", px(9, 8, 7, 255)) }, delay = 0.2 } }