RingGeometry.tests.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /**
  2. * @author TristanVALCKE / https://github.com/Itee
  3. * @author Anonymous
  4. */
  5. /* global QUnit */
  6. import { runStdGeometryTests } from '../../qunit-utils';
  7. import {
  8. RingBufferGeometry
  9. } from '../../../../src/geometries/RingGeometry';
  10. export default QUnit.module( 'Geometries', () => {
  11. QUnit.module( 'RingBufferGeometry', ( hooks ) => {
  12. var geometries = undefined;
  13. hooks.beforeEach( function () {
  14. const parameters = {
  15. innerRadius: 10,
  16. outerRadius: 60,
  17. thetaSegments: 12,
  18. phiSegments: 14,
  19. thetaStart: 0.1,
  20. thetaLength: 2.0
  21. };
  22. geometries = [
  23. new RingBufferGeometry(),
  24. new RingBufferGeometry( parameters.innerRadius ),
  25. new RingBufferGeometry( parameters.innerRadius, parameters.outerRadius ),
  26. new RingBufferGeometry( parameters.innerRadius, parameters.outerRadius, parameters.thetaSegments ),
  27. new RingBufferGeometry( parameters.innerRadius, parameters.outerRadius, parameters.thetaSegments, parameters.phiSegments ),
  28. new RingBufferGeometry( parameters.innerRadius, parameters.outerRadius, parameters.thetaSegments, parameters.phiSegments, parameters.thetaStart ),
  29. new RingBufferGeometry( parameters.innerRadius, parameters.outerRadius, parameters.thetaSegments, parameters.phiSegments, parameters.thetaStart, parameters.thetaLength ),
  30. ];
  31. } );
  32. // INHERITANCE
  33. QUnit.todo( "Extending", ( assert ) => {
  34. assert.ok( false, "everything's gonna be alright" );
  35. } );
  36. // INSTANCING
  37. QUnit.todo( "Instancing", ( assert ) => {
  38. assert.ok( false, "everything's gonna be alright" );
  39. } );
  40. // OTHERS
  41. QUnit.test( 'Standard geometry tests', ( assert ) => {
  42. runStdGeometryTests( assert, geometries );
  43. } );
  44. } );
  45. } );
粤ICP备19079148号