RingGeometry.tests.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. (function () {
  2. 'use strict';
  3. var parameters = {
  4. innerRadius: 10,
  5. outerRadius: 60,
  6. thetaSegments: 12,
  7. phiSegments: 14,
  8. thetaStart: 0.1,
  9. thetaLength: 2.0
  10. };
  11. var geometries;
  12. QUnit.module( "Extras - Geometries - RingGeometry", {
  13. beforeEach: function() {
  14. geometries = [
  15. new THREE.RingGeometry(),
  16. new THREE.RingGeometry( parameters.innerRadius ),
  17. new THREE.RingGeometry( parameters.innerRadius, parameters.outerRadius ),
  18. new THREE.RingGeometry( parameters.innerRadius, parameters.outerRadius, parameters.thetaSegments ),
  19. new THREE.RingGeometry( parameters.innerRadius, parameters.outerRadius, parameters.thetaSegments, parameters.phiSegments ),
  20. new THREE.RingGeometry( parameters.innerRadius, parameters.outerRadius, parameters.thetaSegments, parameters.phiSegments, parameters.thetaStart ),
  21. new THREE.RingGeometry( parameters.innerRadius, parameters.outerRadius, parameters.thetaSegments, parameters.phiSegments, parameters.thetaStart, parameters.thetaLength ),
  22. ];
  23. }
  24. });
  25. QUnit.test( "standard geometry tests", function( assert ) {
  26. runStdGeometryTests( assert, geometries );
  27. });
  28. })();