(target, r, g, b, a)
| 1295 | |
| 1296 | suite('background()', function() { |
| 1297 | function assertAllPixelsAreColor(target, r, g, b, a) { |
| 1298 | target.loadPixels(); |
| 1299 | const expectedPixels = []; |
| 1300 | for (let i = 0; i < target.width * target.height; i++) { |
| 1301 | expectedPixels.push(r, g, b, a); |
| 1302 | } |
| 1303 | assert.deepEqual([ ...target.pixels ], expectedPixels); |
| 1304 | } |
| 1305 | |
| 1306 | function testDepthGetsCleared(target) { |
| 1307 | target.pixelDensity(1); |
no test coverage detected