- assertEquals("Unexpected x-grid color found at pixel: x: " + x + "y: " + y,
- emptyColor, Util.samplePixel(g.hidden_, x - 4, y).slice(0, 3));
- assertEquals("Unexpected x-grid color found at pixel: x: " + x + "y: " + y,
- gridColor, Util.samplePixel(g.hidden_, x - 3, y).slice(0, 3));
- assertEquals("Unexpected x-grid color found at pixel: x: " + x + "y: " + y,
- gridColor, Util.samplePixel(g.hidden_, x - 2, y).slice(0, 3));
- assertEquals("Unexpected x-grid color found at pixel: x: " + x + "y: " + y,
- gridColor, Util.samplePixel(g.hidden_, x - 1, y).slice(0, 3));
- assertEquals("Unexpected x-grid color found at pixel: x: " + x + "y: " + y,
- gridColor, Util.samplePixel(g.hidden_, x, y).slice(0, 3));
- assertEquals("Unexpected x-grid color found at pixel: x: " + x + "y: " + y,
- gridColor, Util.samplePixel(g.hidden_, x + 1, y).slice(0, 3));
- assertEquals("Unexpected x-grid color found at pixel: x: " + x + "y: " + y,
- emptyColor, Util.samplePixel(g.hidden_, x + 2, y).slice(0, 3));
+ 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);