From cb24af7cc23a9408959b4bc8c3258e64a016c5da Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Wed, 13 Dec 2023 21:47:42 -0400 Subject: [PATCH] tests: add texture debug name check --- testing/tests/graphics.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testing/tests/graphics.lua b/testing/tests/graphics.lua index 3808430e7..6ee0939e0 100644 --- a/testing/tests/graphics.lua +++ b/testing/tests/graphics.lua @@ -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)