TextGeometry.tests.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /**
  2. * @author TristanVALCKE / https://github.com/Itee
  3. */
  4. /* global QUnit */
  5. import {
  6. TextGeometry,
  7. TextBufferGeometry
  8. } from '../../../../src/geometries/TextGeometry';
  9. export default QUnit.module( 'Geometries', () => {
  10. QUnit.module( 'TextGeometry', ( hooks ) => {
  11. var geometries = undefined;
  12. hooks.beforeEach( function () {
  13. // TODO: we cannot load any font from Threejs package :S
  14. const parameters = {
  15. font: undefined
  16. };
  17. geometries = [
  18. new TextGeometry()
  19. ];
  20. } );
  21. // INHERITANCE
  22. QUnit.todo( "Extending", ( assert ) => {
  23. assert.ok( false, "everything's gonna be alright" );
  24. } );
  25. // INSTANCING
  26. QUnit.todo( "Instancing", ( assert ) => {
  27. assert.ok( false, "everything's gonna be alright" );
  28. } );
  29. // OTHERS
  30. QUnit.test( 'Standard geometry tests', ( assert ) => {
  31. runStdGeometryTests( assert, geometries );
  32. } );
  33. } );
  34. QUnit.module( 'TextBufferGeometry', ( hooks ) => {
  35. var geometries = undefined;
  36. hooks.beforeEach( function () {
  37. const parameters = {};
  38. geometries = [
  39. new TextBufferGeometry()
  40. ];
  41. } );
  42. // INHERITANCE
  43. QUnit.todo( "Extending", ( assert ) => {
  44. assert.ok( false, "everything's gonna be alright" );
  45. } );
  46. // INSTANCING
  47. QUnit.todo( "Instancing", ( assert ) => {
  48. assert.ok( false, "everything's gonna be alright" );
  49. } );
  50. // OTHERS
  51. QUnit.test( 'Standard geometry tests', ( assert ) => {
  52. runStdGeometryTests( assert, geometries );
  53. } );
  54. } );
  55. } );