Skip to content

Commit 2c87f7a

Browse files
committed
Update tests to match new (default) colours
1 parent 2558a51 commit 2c87f7a

9 files changed

+3
-4
lines changed

tests/abc.bmp

0 Bytes
Binary file not shown.

tests/all-colours.bmp

0 Bytes
Binary file not shown.

tests/clipping-schip-hires.bmp

0 Bytes
Binary file not shown.

tests/clipping-schip-lowres.bmp

0 Bytes
Binary file not shown.

tests/clipping-xochip-hires.bmp

0 Bytes
Binary file not shown.

tests/clipping-xochip-lowres.bmp

0 Bytes
Binary file not shown.

tests/planes.bmp

0 Bytes
Binary file not shown.

tests/random.test.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ function expectPixel(display, xPos, yPos, w, h) {
3636
for ( x = 0; x < w; x++ ) {
3737
for ( y = 0; y < h; y++ ) {
3838
const index = (y * w + x) * 3;
39-
const expectation = x == xPos && y == yPos ? 255 : 0;
40-
expect(display[index+0]).toBe(expectation);
41-
expect(display[index+1]).toBe(expectation);
42-
expect(display[index+2]).toBe(expectation);
39+
expect(display[index+0]).toBe(x == xPos && y == yPos ? 252 : 0);
40+
expect(display[index+1]).toBe(x == xPos && y == yPos ? 252 : 0);
41+
expect(display[index+2]).toBe(x == xPos && y == yPos ? 255 : 0);
4342
}
4443
}
4544
}

tests/scrolling.bmp

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)