| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- /**
- * @author TristanVALCKE / https://github.com/Itee
- * @author Anonymous
- */
- /* global QUnit */
- import { runStdGeometryTests } from '../../qunit-utils';
- import {
- BoxGeometry,
- BoxBufferGeometry
- } from '../../../../src/geometries/BoxGeometry';
- export default QUnit.module( 'Geometries', () => {
- QUnit.module( 'BoxGeometry', ( hooks ) => {
- var geometries = undefined;
- hooks.beforeEach( function () {
- const parameters = {
- width: 10,
- height: 20,
- depth: 30,
- widthSegments: 2,
- heightSegments: 3,
- depthSegments: 4
- };
- geometries = [
- new BoxGeometry(),
- new BoxGeometry( parameters.width, parameters.height, parameters.depth ),
- new BoxGeometry( parameters.width, parameters.height, parameters.depth, parameters.widthSegments, parameters.heightSegments, parameters.depthSegments )
- ];
- } );
- // INHERITANCE
- QUnit.todo( "Extending", ( assert ) => {
- assert.ok( false, "everything's gonna be alright" );
- } );
- // INSTANCING
- QUnit.todo( "Instancing", ( assert ) => {
- assert.ok( false, "everything's gonna be alright" );
- } );
- // OTHERS
- QUnit.test( 'Standard geometry tests', ( assert ) => {
- runStdGeometryTests( assert, geometries );
- } );
- } );
- QUnit.module( 'BoxBufferGeometry', ( hooks ) => {
- var geometries = undefined;
- hooks.beforeEach( function () {
- const parameters = {
- width: 10,
- height: 20,
- depth: 30,
- widthSegments: 2,
- heightSegments: 3,
- depthSegments: 4
- };
- geometries = [
- new BoxBufferGeometry(),
- new BoxBufferGeometry( parameters.width, parameters.height, parameters.depth ),
- new BoxBufferGeometry( parameters.width, parameters.height, parameters.depth, parameters.widthSegments, parameters.heightSegments, parameters.depthSegments )
- ];
- } );
- // INHERITANCE
- QUnit.todo( "Extending", ( assert ) => {
- assert.ok( false, "everything's gonna be alright" );
- } );
- // INSTANCING
- QUnit.todo( "Instancing", ( assert ) => {
- assert.ok( false, "everything's gonna be alright" );
- } );
- // OTHERS
- QUnit.test( 'Standard geometry tests', ( assert ) => {
- runStdGeometryTests( assert, geometries );
- } );
- } );
- } );
|