PlaneGeometry.tests.js 748 B

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