mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
tests: add texture debug name check
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user