tests: add texture debug name check

This commit is contained in:
Sasha Szpakowski
2023-12-13 21:47:42 -04:00
parent b7e576efa8
commit cb24af7cc2
+5 -1
View File
@@ -18,7 +18,8 @@ love.test.graphics.Canvas = function(test)
readable = true,
msaa = 0,
dpiscale = love.graphics.getDPIScale(),
mipmaps = 'auto'
mipmaps = 'auto',
debugname = 'testcanvas'
})
test:assertObject(canvas)
@@ -88,6 +89,9 @@ love.test.graphics.Canvas = function(test)
test:assertGreaterEqual(2, canvas:getMipmapCount()) -- docs say no mipmaps should return 1
test:assertEquals('auto', canvas:getMipmapMode())
-- check debug name
test:assertEquals('testcanvas', canvas:getDebugName())
-- check basic rendering
canvas:renderTo(function()
love.graphics.setColor(1, 0, 0)