Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
Fix migration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pchen66 committed Jun 4, 2020
1 parent d49ecdb commit 4c34789
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/_browserENV.js
Expand Up @@ -935,7 +935,7 @@ const customWebGLContext = function () {
this.getBufferParameter = function () {};
this.getContextAttributes = function () {};
this.getError = function () {};
this.getExtension = function () {};
this.getExtension = function () {return {}};
this.getFramebufferAttachmentParameter = function () {};

const parameters = {};
Expand Down
2 changes: 1 addition & 1 deletion test/src/panorama/BasicPanorama.test.js
Expand Up @@ -5,7 +5,7 @@ import { BasicPanorama } from '../../../src/panorama/BasicPanorama';
test.cb('Load Event', t => {
const panorama = new BasicPanorama();
panorama.addEventListener( 'load', () => {
t.true(panorama.material.uniforms[ 'tCube' ].value instanceof THREE.CubeTexture);
t.true(panorama.material.uniforms[ 'envMap' ].value instanceof THREE.CubeTexture);
t.end();
} );
panorama.load();
Expand Down
2 changes: 1 addition & 1 deletion test/src/panorama/CubePanorama.test.js
Expand Up @@ -17,7 +17,7 @@ const images = [
test.cb('Load Event', t => {
const panorama = new CubePanorama( images );
panorama.addEventListener( 'load', () => {
t.true(panorama.material.uniforms[ 'tCube' ].value instanceof THREE.CubeTexture);
t.true(panorama.material.uniforms[ 'envMap' ].value instanceof THREE.CubeTexture);
t.end();
} );
panorama.load();
Expand Down

0 comments on commit 4c34789

Please sign in to comment.