LatheGeometry.tests.js 886 字节
Newer Older
T
Tristan VALCKE 已提交
1 2
/* global QUnit */

M
munrocket@pm.me 已提交
3
import { runStdGeometryTests } from '../../utils/qunit-utils';
M
Mugen87 已提交
4
import { LatheGeometry } from '../../../../src/geometries/LatheGeometry';
T
Tristan VALCKE 已提交
5 6 7

export default QUnit.module( 'Geometries', () => {

M
Mugen87 已提交
8
	QUnit.module( 'LatheGeometry', ( hooks ) => {
T
Tristan VALCKE 已提交
9 10 11 12 13 14 15 16 17 18 19 20

		var geometries = undefined;
		hooks.beforeEach( function () {

			const parameters = {
				points: [],
				segments: 0,
				phiStart: 0,
				phiLength: 0
			};

			geometries = [
M
Mugen87 已提交
21
				new LatheGeometry( parameters.points )
T
Tristan VALCKE 已提交
22 23 24 25 26
			];

		} );

		// INHERITANCE
D
Don McCurdy 已提交
27
		QUnit.todo( "Extending", ( assert ) => {
T
Tristan VALCKE 已提交
28 29 30 31 32 33

			assert.ok( false, "everything's gonna be alright" );

		} );

		// INSTANCING
D
Don McCurdy 已提交
34
		QUnit.todo( "Instancing", ( assert ) => {
T
Tristan VALCKE 已提交
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49

			assert.ok( false, "everything's gonna be alright" );

		} );

		// OTHERS
		QUnit.test( 'Standard geometry tests', ( assert ) => {

			runStdGeometryTests( assert, geometries );

		} );

	} );

} );