From 4c347897ea576ee923e00e7b76340ef3a87ebbdf Mon Sep 17 00:00:00 2001 From: pchen66 Date: Wed, 3 Jun 2020 22:28:57 -0700 Subject: [PATCH] Fix migration tests --- test/_browserENV.js | 2 +- test/src/panorama/BasicPanorama.test.js | 2 +- test/src/panorama/CubePanorama.test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/_browserENV.js b/test/_browserENV.js index c9c07ac7..facb5ce3 100644 --- a/test/_browserENV.js +++ b/test/_browserENV.js @@ -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 = {}; diff --git a/test/src/panorama/BasicPanorama.test.js b/test/src/panorama/BasicPanorama.test.js index ec05a649..23a12235 100644 --- a/test/src/panorama/BasicPanorama.test.js +++ b/test/src/panorama/BasicPanorama.test.js @@ -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(); diff --git a/test/src/panorama/CubePanorama.test.js b/test/src/panorama/CubePanorama.test.js index c35552ac..250b0b9f 100644 --- a/test/src/panorama/CubePanorama.test.js +++ b/test/src/panorama/CubePanorama.test.js @@ -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();