BoxGeometry.tests.js 845 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. (function () {
  2. 'use strict';
  3. var parameters = {
  4. width: 10,
  5. height: 20,
  6. depth: 30,
  7. widthSegments: 2,
  8. heightSegments: 3,
  9. depthSegments: 4
  10. };
  11. var geometries;
  12. var box, cube, boxWithSegments;
  13. QUnit.module( "Extras - Geometries - BoxGeometry", {
  14. beforeEach: function() {
  15. box = new THREE.BoxGeometry( parameters.width, parameters.height, parameters.depth );
  16. cube = new THREE.CubeGeometry( parameters.width, parameters.height, parameters.depth );
  17. boxWithSegments = new THREE.BoxGeometry( parameters.width, parameters.height, parameters.depth,
  18. parameters.widthSegments, parameters.heightSegments, parameters.depthSegments );
  19. geometries = [ box, cube, boxWithSegments ];
  20. }
  21. });
  22. QUnit.test( "standard geometry tests", function( assert ) {
  23. runStdGeometryTests( assert, geometries );
  24. });
  25. })();