ShapeGeometry.tests.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /**
  2. * @author TristanVALCKE / https://github.com/Itee
  3. */
  4. /* global QUnit */
  5. import {
  6. ShapeGeometry,
  7. ShapeBufferGeometry
  8. } from '../../../../src/geometries/ShapeGeometry';
  9. import { Shape } from '../../../../src/extras/core/Shape';
  10. export default QUnit.module( 'Geometries', () => {
  11. QUnit.module( 'ShapeGeometry', ( hooks ) => {
  12. var geometries = undefined;
  13. hooks.beforeEach( function () {
  14. var triangleShape = new Shape();
  15. triangleShape.moveTo( 0, - 1 );
  16. triangleShape.lineTo( 1, 1 );
  17. triangleShape.lineTo( - 1, 1 );
  18. geometries = [
  19. new ShapeGeometry( triangleShape )
  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.todo( 'Standard geometry tests', ( assert ) => {
  32. assert.ok( false, "everything's gonna be alright" );
  33. } );
  34. } );
  35. QUnit.module( 'ShapeBufferGeometry', ( hooks ) => {
  36. var geometries = undefined;
  37. hooks.beforeEach( function () {
  38. var triangleShape = new Shape();
  39. triangleShape.moveTo( 0, - 1 );
  40. triangleShape.lineTo( 1, 1 );
  41. triangleShape.lineTo( - 1, 1 );
  42. geometries = [
  43. new ShapeBufferGeometry( triangleShape )
  44. ];
  45. } );
  46. // INHERITANCE
  47. QUnit.todo( "Extending", ( assert ) => {
  48. assert.ok( false, "everything's gonna be alright" );
  49. } );
  50. // INSTANCING
  51. QUnit.todo( "Instancing", ( assert ) => {
  52. assert.ok( false, "everything's gonna be alright" );
  53. } );
  54. // OTHERS
  55. QUnit.todo( 'Standard geometry tests', ( assert ) => {
  56. assert.ok( false, "everything's gonna be alright" );
  57. } );
  58. } );
  59. } );