LineSegments.tests.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* global QUnit */
  2. import { Object3D } from '../../../../src/core/Object3D.js';
  3. import { Line } from '../../../../src/objects/Line.js';
  4. import { LineSegments } from '../../../../src/objects/LineSegments.js';
  5. export default QUnit.module( 'Objects', () => {
  6. QUnit.module( 'LineSegments', () => {
  7. // INHERITANCE
  8. QUnit.test( 'Extending', ( assert ) => {
  9. var lineSegments = new LineSegments();
  10. assert.strictEqual( lineSegments instanceof Object3D, true, 'LineSegments extends from Object3D' );
  11. assert.strictEqual( lineSegments instanceof Line, true, 'LineSegments extends from Line' );
  12. } );
  13. // INSTANCING
  14. QUnit.todo( 'Instancing', ( assert ) => {
  15. assert.ok( false, 'everything\'s gonna be alright' );
  16. } );
  17. // PROPERTIES
  18. QUnit.test( 'type', ( assert ) => {
  19. const object = new LineSegments();
  20. assert.ok(
  21. object.type === 'LineSegments',
  22. 'LineSegments.type should be LineSegments'
  23. );
  24. } );
  25. // PUBLIC
  26. QUnit.test( 'isLineSegments', ( assert ) => {
  27. const object = new LineSegments();
  28. assert.ok(
  29. object.isLineSegments,
  30. 'LineSegments.isLineSegments should be true'
  31. );
  32. } );
  33. QUnit.todo( 'computeLineDistances', ( assert ) => {
  34. assert.ok( false, 'everything\'s gonna be alright' );
  35. } );
  36. } );
  37. } );