BoxGeometry.tests.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /**
  2. * @author TristanVALCKE / https://github.com/Itee
  3. * @author Anonymous
  4. */
  5. /* global QUnit */
  6. import { runStdGeometryTests } from '../../qunit-utils';
  7. import {
  8. BoxBufferGeometry
  9. } from '../../../../src/geometries/BoxGeometry';
  10. export default QUnit.module( 'Geometries', () => {
  11. QUnit.module( 'BoxBufferGeometry', ( hooks ) => {
  12. var geometries = undefined;
  13. hooks.beforeEach( function () {
  14. const parameters = {
  15. width: 10,
  16. height: 20,
  17. depth: 30,
  18. widthSegments: 2,
  19. heightSegments: 3,
  20. depthSegments: 4
  21. };
  22. geometries = [
  23. new BoxBufferGeometry(),
  24. new BoxBufferGeometry( parameters.width, parameters.height, parameters.depth ),
  25. new BoxBufferGeometry( parameters.width, parameters.height, parameters.depth, parameters.widthSegments, parameters.heightSegments, parameters.depthSegments )
  26. ];
  27. } );
  28. // INHERITANCE
  29. QUnit.todo( "Extending", ( assert ) => {
  30. assert.ok( false, "everything's gonna be alright" );
  31. } );
  32. // INSTANCING
  33. QUnit.todo( "Instancing", ( assert ) => {
  34. assert.ok( false, "everything's gonna be alright" );
  35. } );
  36. // OTHERS
  37. QUnit.test( 'Standard geometry tests', ( assert ) => {
  38. runStdGeometryTests( assert, geometries );
  39. } );
  40. } );
  41. } );