1
0

PolyhedronGeometry.tests.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /**
  2. * @author TristanVALCKE / https://github.com/Itee
  3. */
  4. /* global QUnit */
  5. import { runStdGeometryTests } from '../../qunit-utils';
  6. import {
  7. PolyhedronGeometry,
  8. PolyhedronBufferGeometry
  9. } from '../../../../src/geometries/PolyhedronGeometry';
  10. export default QUnit.module( 'Geometries', () => {
  11. QUnit.module( 'PolyhedronGeometry', ( hooks ) => {
  12. var geometries = undefined;
  13. hooks.beforeEach( function () {
  14. var vertices = [
  15. 1, 1, 1, - 1, - 1, 1, - 1, 1, - 1, 1, - 1, - 1
  16. ];
  17. var indices = [
  18. 2, 1, 0, 0, 3, 2, 1, 3, 0, 2, 3, 1
  19. ];
  20. geometries = [
  21. new PolyhedronGeometry( vertices, indices )
  22. ];
  23. } );
  24. // INHERITANCE
  25. QUnit.todo( "Extending", ( assert ) => {
  26. assert.ok( false, "everything's gonna be alright" );
  27. } );
  28. // INSTANCING
  29. QUnit.todo( "Instancing", ( assert ) => {
  30. assert.ok( false, "everything's gonna be alright" );
  31. } );
  32. // OTHERS
  33. QUnit.test( 'Standard geometry tests', ( assert ) => {
  34. runStdGeometryTests( assert, geometries );
  35. } );
  36. } );
  37. QUnit.module( 'PolyhedronBufferGeometry', ( hooks ) => {
  38. var geometries = undefined;
  39. hooks.beforeEach( function () {
  40. var vertices = [
  41. 1, 1, 1, - 1, - 1, 1, - 1, 1, - 1, 1, - 1, - 1
  42. ];
  43. var indices = [
  44. 2, 1, 0, 0, 3, 2, 1, 3, 0, 2, 3, 1
  45. ];
  46. geometries = [
  47. new PolyhedronBufferGeometry( vertices, indices )
  48. ];
  49. } );
  50. // INHERITANCE
  51. QUnit.todo( "Extending", ( assert ) => {
  52. assert.ok( false, "everything's gonna be alright" );
  53. } );
  54. // INSTANCING
  55. QUnit.todo( "Instancing", ( assert ) => {
  56. assert.ok( false, "everything's gonna be alright" );
  57. } );
  58. // OTHERS
  59. QUnit.test( 'Standard geometry tests', ( assert ) => {
  60. runStdGeometryTests( assert, geometries );
  61. } );
  62. } );
  63. } );
粤ICP备19079148号