- assertEquals("Unexpected grid color found at pixel: x: " + x + "y: " + y, [
- 0, 0, 0, 0 ], Util.samplePixel(g.hidden_, x - 4, y));
- assertEquals("Unexpected grid color found at pixel: x: " + x + "y: " + y, [
- 255, 0, 0, 128 ], Util.samplePixel(g.hidden_, x - 3, y));
- assertEquals("Unexpected grid color found at pixel: x: " + x + "y: " + y, [
- 255, 0, 0, 255 ], Util.samplePixel(g.hidden_, x - 2, y));
- assertEquals("Unexpected grid color found at pixel: x: " + x + "y: " + y, [
- 255, 0, 0, 255 ], Util.samplePixel(g.hidden_, x - 1, y));
- assertEquals("Unexpected grid color found at pixel: x: " + x + "y: " + y, [
- 255, 0, 0, 255 ], Util.samplePixel(g.hidden_, x, y));
- assertEquals("Unexpected grid color found at pixel: x: " + x + "y: " + y, [
- 255, 0, 0, 128 ], Util.samplePixel(g.hidden_, x + 1, y));
- assertEquals("Unexpected grid color found at pixel: x: " + x + "y: " + y, [
- 0, 0, 0, 0 ], Util.samplePixel(g.hidden_, x + 2, y));
+ assert.deepEqual(emptyColor, sampler.rgbAtPixel(x - 4, y),
+ "Unexpected x-grid color found at pixel: x: " + x + "y: " + y);
+ assert.deepEqual(gridColor, sampler.rgbAtPixel(x - 3, y),
+ "Unexpected x-grid color found at pixel: x: " + x + "y: " + y);
+ assert.deepEqual(gridColor, sampler.rgbAtPixel(x - 2, y),
+ "Unexpected x-grid color found at pixel: x: " + x + "y: " + y);
+ assert.deepEqual(gridColor, sampler.rgbAtPixel(x - 1, y),
+ "Unexpected x-grid color found at pixel: x: " + x + "y: " + y);
+ assert.deepEqual(gridColor, sampler.rgbAtPixel(x, y),
+ "Unexpected x-grid color found at pixel: x: " + x + "y: " + y);
+ assert.deepEqual(gridColor, sampler.rgbAtPixel(x + 1, y),
+ "Unexpected x-grid color found at pixel: x: " + x + "y: " + y);
+ assert.deepEqual(emptyColor, sampler.rgbAtPixel(x + 2, y),
+ "Unexpected x-grid color found at pixel: x: " + x + "y: " + y);