| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- /* global QUnit */
- import { WireframeGeometry } from '../../../../src/geometries/WireframeGeometry.js';
- import { BufferGeometry } from '../../../../src/core/BufferGeometry.js';
- // import { runStdGeometryTests } from '../../utils/qunit-utils.js';
- export default QUnit.module( 'Geometries', () => {
- QUnit.module( 'WireframeGeometry', ( hooks ) => {
- let geometries = undefined; // eslint-disable-line no-unused-vars
- hooks.beforeEach( function () {
- geometries = [
- new WireframeGeometry()
- ];
- } );
- // INHERITANCE
- QUnit.test( 'Extending', ( assert ) => {
- const object = new WireframeGeometry();
- assert.strictEqual(
- object instanceof BufferGeometry, true,
- 'WireframeGeometry extends from BufferGeometry'
- );
- } );
- // INSTANCING
- QUnit.test( 'Instancing', ( assert ) => {
- const object = new WireframeGeometry();
- assert.ok( object, 'Can instantiate a WireframeGeometry.' );
- } );
- // PROPERTIES
- QUnit.test( 'type', ( assert ) => {
- const object = new WireframeGeometry();
- assert.ok(
- object.type === 'WireframeGeometry',
- 'WireframeGeometry.type should be WireframeGeometry'
- );
- } );
- QUnit.todo( 'parameters', ( assert ) => {
- assert.ok( false, 'everything\'s gonna be alright' );
- } );
- // OTHERS
- QUnit.todo( 'Standard geometry tests', ( assert ) => {
- assert.ok( false, 'everything\'s gonna be alright' );
- } );
- } );
- } );
|