12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- /* global QUnit */
- import { Object3D } from '../../../../src/core/Object3D.js';
- import { Line } from '../../../../src/objects/Line.js';
- import { LineSegments } from '../../../../src/objects/LineSegments.js';
- export default QUnit.module( 'Objects', () => {
- QUnit.module( 'LineSegments', () => {
- // INHERITANCE
- QUnit.test( 'Extending', ( assert ) => {
- var lineSegments = new LineSegments();
- assert.strictEqual( lineSegments instanceof Object3D, true, 'LineSegments extends from Object3D' );
- assert.strictEqual( lineSegments instanceof Line, true, 'LineSegments extends from Line' );
- } );
- // INSTANCING
- QUnit.todo( 'Instancing', ( assert ) => {
- assert.ok( false, 'everything\'s gonna be alright' );
- } );
- // PROPERTIES
- QUnit.test( 'type', ( assert ) => {
- const object = new LineSegments();
- assert.ok(
- object.type === 'LineSegments',
- 'LineSegments.type should be LineSegments'
- );
- } );
- // PUBLIC
- QUnit.test( 'isLineSegments', ( assert ) => {
- const object = new LineSegments();
- assert.ok(
- object.isLineSegments,
- 'LineSegments.isLineSegments should be true'
- );
- } );
- QUnit.todo( 'computeLineDistances', ( assert ) => {
- assert.ok( false, 'everything\'s gonna be alright' );
- } );
- } );
- } );
|