|
@@ -49,17 +49,6 @@ export default QUnit.module( 'Renderers', () => {
|
|
|
|
|
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
- QUnit.test( 'has (with aliases)', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- const gl = new WebglContextMock( [ 'WEBKIT_WEBGL_depth_texture' ] );
|
|
|
|
|
- const extensions = new WebGLExtensions( gl );
|
|
|
|
|
- assert.ok( extensions.has( 'WEBGL_depth_texture' ) );
|
|
|
|
|
- assert.ok( extensions.has( 'WEBKIT_WEBGL_depth_texture' ) );
|
|
|
|
|
- assert.notOk( extensions.has( 'EXT_texture_filter_anisotropic' ) );
|
|
|
|
|
- assert.notOk( extensions.has( 'NonExistingExtension' ) );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
QUnit.test( 'get', ( assert ) => {
|
|
QUnit.test( 'get', ( assert ) => {
|
|
|
|
|
|
|
|
const gl = new WebglContextMock( [ 'Extension1', 'Extension2' ] );
|
|
const gl = new WebglContextMock( [ 'Extension1', 'Extension2' ] );
|
|
@@ -77,24 +66,6 @@ export default QUnit.module( 'Renderers', () => {
|
|
|
|
|
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
- QUnit.test( 'get (with aliases)', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- const gl = new WebglContextMock( [ 'WEBKIT_WEBGL_depth_texture' ] );
|
|
|
|
|
- const extensions = new WebGLExtensions( gl );
|
|
|
|
|
- assert.ok( extensions.get( 'WEBGL_depth_texture' ) );
|
|
|
|
|
- assert.ok( extensions.get( 'WEBKIT_WEBGL_depth_texture' ) );
|
|
|
|
|
-
|
|
|
|
|
- // suppress the following console message when testing
|
|
|
|
|
- // THREE.WebGLRenderer: EXT_texture_filter_anisotropic extension not supported.
|
|
|
|
|
- // THREE.WebGLRenderer: NonExistingExtension extension not supported.
|
|
|
|
|
-
|
|
|
|
|
- console.level = CONSOLE_LEVEL.OFF;
|
|
|
|
|
- assert.notOk( extensions.get( 'EXT_texture_filter_anisotropic' ) );
|
|
|
|
|
- assert.notOk( extensions.get( 'NonExistingExtension' ) );
|
|
|
|
|
- console.level = CONSOLE_LEVEL.DEFAULT;
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
} );
|
|
} );
|