Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Jun 28, 2021
1 parent 5314d15 commit 5b45436
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions Specs/Renderer/TextureSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,9 @@ describe(
context: context,
fragmentShader: fs,
uniformMap: uniformMap,
}).contextToRender([2, 255, 2, 255]);
}).contextToRenderAndCall(function (color) {
return expect(color).toEqualEpsilon([2, 255, 2, 255], 2);
});
});

it("draws the expected KTX2 uncompressed texture color", function () {
Expand All @@ -477,7 +479,9 @@ describe(
context: context,
fragmentShader: fs,
uniformMap: uniformMap,
}).contextToRender([0, 255, 24, 255]);
}).contextToRenderAndCall(function (color) {
return expect(color).toEqualEpsilon([0, 255, 24, 255], 2);
});
});

it("renders with premultiplied alpha", function () {
Expand Down
4 changes: 2 additions & 2 deletions Specs/Scene/GltfLoaderSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ describe(
var texture = metallicRoughness.baseColorTexture.texture;
var sampler = texture.sampler;

expect(texture.width).toBe(400);
expect(texture.height).toBe(400);
expect(texture.width).toBe(256);
expect(texture.height).toBe(256);

expect(sampler.wrapS).toBe(TextureWrap.REPEAT);
expect(sampler.wrapT).toBe(TextureWrap.REPEAT);
Expand Down

0 comments on commit 5b45436

Please sign in to comment.