Skip to content

Commit

Permalink
fix gl specs
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhenn committed Dec 17, 2024
1 parent e6b43b4 commit 5567474
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/gl/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ describe('gl tests', () => {
const canvas = map.getRenderer().canvas;
const ctx = canvas.getContext('2d');
const pixel = ctx.getImageData(canvas.width / 2, canvas.height / 2, 1, 1);
expect(pixel).to.be.eql({ data: { '0': 138, '1': 142, '2': 143, '3': 255 } });
expect(pixel).to.be.eql({ data: { '0': 128, '1': 132, '2': 133, '3': 255 } });
done();
}
count++;
Expand Down Expand Up @@ -147,7 +147,7 @@ describe('gl tests', () => {
const canvas = map.getRenderer().canvas;
const ctx = canvas.getContext('2d');
const pixel = ctx.getImageData(canvas.width / 2, canvas.height / 2, 1, 1);
expect(pixel).to.be.eql({ data: { '0': 138, '1': 142, '2': 143, '3': 255 } });
expect(pixel).to.be.eql({ data: { '0': 128, '1': 132, '2': 133, '3': 255 } });
done();
});
group.addTo(map);
Expand Down Expand Up @@ -178,7 +178,7 @@ describe('gl tests', () => {
const canvas = map.getRenderer().canvas;
const ctx = canvas.getContext('2d');
const pixel = ctx.getImageData(canvas.width / 2, canvas.height / 2, 1, 1);
expect(pixel).to.be.eql({ data: { '0': 138, '1': 142, '2': 143, '3': 255 } });
expect(pixel).to.be.eql({ data: { '0': 128, '1': 132, '2': 133, '3': 255 } });
done();
}
count++;
Expand Down Expand Up @@ -281,7 +281,7 @@ describe('gl tests', () => {
const canvas = map.getRenderer().canvas;
const ctx = canvas.getContext('2d');
const pixel = ctx.getImageData(canvas.width / 2, canvas.height / 2, 1, 1);
expect(pixel).to.be.eql({ data: { '0': 138, '1': 142, '2': 143, '3': 255 } });
expect(pixel).to.be.eql({ data: { '0': 128, '1': 132, '2': 133, '3': 255 } });
done();

});
Expand Down Expand Up @@ -695,7 +695,7 @@ describe('gl tests', () => {
group.once('layerload', () => {
const canvas = group.getRenderer().canvas;
const pixel = readPixel(canvas, canvas.width / 2, canvas.height / 2);
expect(pixel).to.be.eql({ data: { '0': 138, '1': 142, '2': 143, '3': 255 } });
expect(pixel).to.be.eql({ data: { '0': 128, '1': 132, '2': 133, '3': 255 } });
done();
});
group.setTerrain(null);
Expand Down

0 comments on commit 5567474

Please sign in to comment.