(graph, w, h, density)
| 38 | } |
| 39 | |
| 40 | function assertValidPixels(graph, w, h, density) { |
| 41 | graph.loadPixels(); |
| 42 | var real = graph.pixels.length; |
| 43 | var expected = w * density * h * density * 4; |
| 44 | assert.strictEqual(real, expected, 'invalid number of pixels'); |
| 45 | } |
| 46 | |
| 47 | suite('p5.prototype.createGraphics', function() { |
| 48 | test('it creates a graphics', function() { |
no test coverage detected