PlaneGeometry.tests.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* global QUnit */
  2. import { runStdGeometryTests } from '../../utils/qunit-utils';
  3. import { PlaneBufferGeometry } from '../../../../src/geometries/PlaneBufferGeometry';
  4. export default QUnit.module( 'Geometries', () => {
  5. QUnit.module( 'PlaneBufferGeometry', ( hooks ) => {
  6. var geometries = undefined;
  7. hooks.beforeEach( function () {
  8. const parameters = {
  9. width: 10,
  10. height: 30,
  11. widthSegments: 3,
  12. heightSegments: 5
  13. };
  14. geometries = [
  15. new PlaneBufferGeometry(),
  16. new PlaneBufferGeometry( parameters.width ),
  17. new PlaneBufferGeometry( parameters.width, parameters.height ),
  18. new PlaneBufferGeometry( parameters.width, parameters.height, parameters.widthSegments ),
  19. new PlaneBufferGeometry( parameters.width, parameters.height, parameters.widthSegments, parameters.heightSegments ),
  20. ];
  21. } );
  22. // INHERITANCE
  23. QUnit.todo( "Extending", ( assert ) => {
  24. assert.ok( false, "everything's gonna be alright" );
  25. } );
  26. // INSTANCING
  27. QUnit.todo( "Instancing", ( assert ) => {
  28. assert.ok( false, "everything's gonna be alright" );
  29. } );
  30. // OTHERS
  31. QUnit.test( 'Standard geometry tests', ( assert ) => {
  32. runStdGeometryTests( assert, geometries );
  33. } );
  34. } );
  35. } );