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)