CircleGeometry.tests.js 1.3 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. CircleBufferGeometry
  9. } from '../../../../src/geometries/CircleGeometry';
  10. export default QUnit.module( 'Geometries', () => {
  11. QUnit.module( 'CircleBufferGeometry', ( hooks ) => {
  12. var geometries = undefined;
  13. hooks.beforeEach( function () {
  14. const parameters = {
  15. radius: 10,
  16. segments: 20,
  17. thetaStart: 0.1,
  18. thetaLength: 0.2
  19. };
  20. geometries = [
  21. new CircleBufferGeometry(),
  22. new CircleBufferGeometry( parameters.radius ),
  23. new CircleBufferGeometry( parameters.radius, parameters.segments ),
  24. new CircleBufferGeometry( parameters.radius, parameters.segments, parameters.thetaStart ),
  25. new CircleBufferGeometry( parameters.radius, parameters.segments, parameters.thetaStart, parameters.thetaLength ),
  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. } );