WireframeGeometry.tests.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* global QUnit */
  2. import { WireframeGeometry } from '../../../../src/geometries/WireframeGeometry.js';
  3. import { BufferGeometry } from '../../../../src/core/BufferGeometry.js';
  4. // import { runStdGeometryTests } from '../../utils/qunit-utils.js';
  5. export default QUnit.module( 'Geometries', () => {
  6. QUnit.module( 'WireframeGeometry', ( hooks ) => {
  7. let geometries = undefined; // eslint-disable-line no-unused-vars
  8. hooks.beforeEach( function () {
  9. geometries = [
  10. new WireframeGeometry()
  11. ];
  12. } );
  13. // INHERITANCE
  14. QUnit.test( 'Extending', ( assert ) => {
  15. const object = new WireframeGeometry();
  16. assert.strictEqual(
  17. object instanceof BufferGeometry, true,
  18. 'WireframeGeometry extends from BufferGeometry'
  19. );
  20. } );
  21. // INSTANCING
  22. QUnit.test( 'Instancing', ( assert ) => {
  23. const object = new WireframeGeometry();
  24. assert.ok( object, 'Can instantiate a WireframeGeometry.' );
  25. } );
  26. // PROPERTIES
  27. QUnit.test( 'type', ( assert ) => {
  28. const object = new WireframeGeometry();
  29. assert.ok(
  30. object.type === 'WireframeGeometry',
  31. 'WireframeGeometry.type should be WireframeGeometry'
  32. );
  33. } );
  34. QUnit.todo( 'parameters', ( assert ) => {
  35. assert.ok( false, 'everything\'s gonna be alright' );
  36. } );
  37. // OTHERS
  38. QUnit.todo( 'Standard geometry tests', ( assert ) => {
  39. assert.ok( false, 'everything\'s gonna be alright' );
  40. } );
  41. } );
  42. } );
粤ICP备19079148号