Skip to content

Commit

Permalink
tests: add texture debug name check
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Dec 14, 2023
1 parent b7e576e commit cb24af7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion testing/tests/graphics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit cb24af7

Please sign in to comment.