You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

45 lines
1.0 KiB

/* global QUnit */
import { InstancedInterleavedBuffer } from '../../../../src/core/InstancedInterleavedBuffer.js';
export default QUnit.module( 'Core', () => {
QUnit.module( 'InstancedInterleavedBuffer', () => {
// INHERITANCE
QUnit.todo( 'Extending', ( assert ) => {
assert.ok( false, 'everything\'s gonna be alright' );
} );
// INSTANCING
QUnit.test( 'Instancing', ( assert ) => {
var array = new Float32Array( [ 1, 2, 3, 7, 8, 9 ] );
var instance = new InstancedInterleavedBuffer( array, 3 );
assert.ok( instance.meshPerAttribute === 1, 'ok' );
} );
// PUBLIC STUFF
QUnit.todo( 'isInstancedInterleavedBuffer', ( assert ) => {
assert.ok( false, 'everything\'s gonna be alright' );
} );
QUnit.test( 'copy', ( assert ) => {
var array = new Float32Array( [ 1, 2, 3, 7, 8, 9 ] );
var instance = new InstancedInterleavedBuffer( array, 3 );
var copiedInstance = instance.copy( instance );
assert.ok( copiedInstance.meshPerAttribute === 1, 'additional attribute was copied' );
} );
} );
} );