ANFADEV 2 gadi atpakaļ
vecāks
revīzija
ddbfd26da0

+ 6 - 3
test/unit/src/core/Object3D.tests.js

@@ -12,6 +12,7 @@ import {
 	w,
 	w,
 	eps
 	eps
 } from '../math/Constants.tests.js';
 } from '../math/Constants.tests.js';
+import { EventDispatcher } from '../../../../src/core/EventDispatcher.js';
 
 
 const matrixEquals4 = ( a, b ) => {
 const matrixEquals4 = ( a, b ) => {
 
 
@@ -54,10 +55,12 @@ export default QUnit.module( 'Core', () => {
 		};
 		};
 
 
 		// INHERITANCE
 		// INHERITANCE
-		QUnit.todo( 'Extending', ( assert ) => {
-
-			assert.ok( false, 'everything\'s gonna be alright' );
+		QUnit.test( 'Extending', ( assert ) => {
 
 
+			var object = new Object3D();
+	
+			assert.strictEqual( object instanceof EventDispatcher, true, 'Object3D extends from EventDispatcher' );
+	
 		} );
 		} );
 
 
 		// INSTANCING
 		// INSTANCING

+ 6 - 3
test/unit/src/objects/Bone.tests.js

@@ -1,15 +1,18 @@
 /* global QUnit */
 /* global QUnit */
 
 
-// import { Bone } from '../../../../src/objects/Bone.js';
+import { Object3D } from '../../../../src/core/Object3D.js';
+import { Bone } from '../../../../src/objects/Bone.js';
 
 
 export default QUnit.module( 'Objects', () => {
 export default QUnit.module( 'Objects', () => {
 
 
 	QUnit.module( 'Bone', () => {
 	QUnit.module( 'Bone', () => {
 
 
 		// INHERITANCE
 		// INHERITANCE
-		QUnit.todo( 'Extending', ( assert ) => {
+		QUnit.test( 'Extending', ( assert ) => {
 
 
-			assert.ok( false, 'everything\'s gonna be alright' );
+			var bone = new Bone();
+
+			assert.strictEqual( bone instanceof Object3D, true, 'Bone extends from Object3D' );
 
 
 		} );
 		} );
 
 

+ 6 - 3
test/unit/src/objects/Group.tests.js

@@ -1,15 +1,18 @@
 /* global QUnit */
 /* global QUnit */
 
 
-// import { Group } from '../../../../src/objects/Group.js';
+import { Object3D } from '../../../../src/core/Object3D.js';
+import { Group } from '../../../../src/objects/Group.js';
 
 
 export default QUnit.module( 'Objects', () => {
 export default QUnit.module( 'Objects', () => {
 
 
 	QUnit.module( 'Group', () => {
 	QUnit.module( 'Group', () => {
 
 
 		// INHERITANCE
 		// INHERITANCE
-		QUnit.todo( 'Extending', ( assert ) => {
+		QUnit.test( 'Extending', ( assert ) => {
 
 
-			assert.ok( false, 'everything\'s gonna be alright' );
+			var group = new Group();
+
+			assert.strictEqual( group instanceof Object3D, true, 'Group extends from Object3D' );
 
 
 		} );
 		} );
 
 

+ 6 - 3
test/unit/src/objects/Line.tests.js

@@ -1,15 +1,18 @@
 /* global QUnit */
 /* global QUnit */
 
 
-// import { Line } from '../../../../src/objects/Line.js';
+import { Object3D } from '../../../../src/core/Object3D.js';
+import { Line } from '../../../../src/objects/Line.js';
 
 
 export default QUnit.module( 'Objects', () => {
 export default QUnit.module( 'Objects', () => {
 
 
 	QUnit.module( 'Line', () => {
 	QUnit.module( 'Line', () => {
 
 
 		// INHERITANCE
 		// INHERITANCE
-		QUnit.todo( 'Extending', ( assert ) => {
+		QUnit.test( 'Extending', ( assert ) => {
 
 
-			assert.ok( false, 'everything\'s gonna be alright' );
+			var line = new Line();
+	
+			assert.strictEqual( line instanceof Object3D, true, 'Line extends from Object3D' );
 
 
 		} );
 		} );
 
 

+ 9 - 4
test/unit/src/objects/LineLoop.tests.js

@@ -1,16 +1,21 @@
 /* global QUnit */
 /* global QUnit */
 
 
-// import { LineLoop } from '../../../../src/objects/LineLoop.js';
+import { Object3D } from '../../../../src/core/Object3D.js';
+import { Line } from '../../../../src/objects/Line.js';
+import { LineLoop } from '../../../../src/objects/LineLoop.js';
 
 
 export default QUnit.module( 'Objects', () => {
 export default QUnit.module( 'Objects', () => {
 
 
 	QUnit.module( 'LineLoop', () => {
 	QUnit.module( 'LineLoop', () => {
 
 
 		// INHERITANCE
 		// INHERITANCE
-		QUnit.todo( 'Extending', ( assert ) => {
-
-			assert.ok( false, 'everything\'s gonna be alright' );
+		QUnit.test( 'Extending', ( assert ) => {
 
 
+			var lineLoop = new LineLoop();
+	
+			assert.strictEqual( lineLoop instanceof Object3D, true, 'LineLoop extends from Object3D' );
+			assert.strictEqual( lineLoop instanceof Line, true, 'LineLoop extends from Line' );
+	
 		} );
 		} );
 
 
 		// INSTANCING
 		// INSTANCING

+ 8 - 3
test/unit/src/objects/LineSegments.tests.js

@@ -1,15 +1,20 @@
 /* global QUnit */
 /* global QUnit */
 
 
-// import { LineSegments } from '../../../../src/objects/LineSegments.js';
+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', () => {
 export default QUnit.module( 'Objects', () => {
 
 
 	QUnit.module( 'LineSegments', () => {
 	QUnit.module( 'LineSegments', () => {
 
 
 		// INHERITANCE
 		// INHERITANCE
-		QUnit.todo( 'Extending', ( assert ) => {
+		QUnit.test( 'Extending', ( assert ) => {
 
 
-			assert.ok( false, 'everything\'s gonna be alright' );
+			var lineSegments = new LineSegments();
+	
+			assert.strictEqual( lineSegments instanceof Object3D, true, 'LineSegments extends from Object3D' );
+			assert.strictEqual( lineSegments instanceof Line, true, 'LineSegments extends from Line' );
 
 
 		} );
 		} );
 
 

+ 5 - 2
test/unit/src/objects/Mesh.tests.js

@@ -1,5 +1,6 @@
 /* global QUnit */
 /* global QUnit */
 
 
+import { Object3D } from '../../../../src/core/Object3D.js';
 import { Mesh } from '../../../../src/objects/Mesh.js';
 import { Mesh } from '../../../../src/objects/Mesh.js';
 import { Raycaster } from '../../../../src/core/Raycaster.js';
 import { Raycaster } from '../../../../src/core/Raycaster.js';
 import { PlaneGeometry } from '../../../../src/geometries/PlaneGeometry.js';
 import { PlaneGeometry } from '../../../../src/geometries/PlaneGeometry.js';
@@ -12,9 +13,11 @@ export default QUnit.module( 'Objects', () => {
 	QUnit.module( 'Mesh', () => {
 	QUnit.module( 'Mesh', () => {
 
 
 		// INHERITANCE
 		// INHERITANCE
-		QUnit.todo( 'Extending', ( assert ) => {
+		QUnit.test( 'Extending', ( assert ) => {
 
 
-			assert.ok( false, 'everything\'s gonna be alright' );
+			var mesh = new Mesh();
+	
+			assert.strictEqual( mesh instanceof Object3D, true, 'Mesh extends from Object3D' );
 
 
 		} );
 		} );
 
 

+ 6 - 3
test/unit/src/objects/Points.tests.js

@@ -1,15 +1,18 @@
 /* global QUnit */
 /* global QUnit */
 
 
-// import { Points } from '../../../../src/objects/Points.js';
+import { Object3D } from '../../../../src/core/Object3D.js';
+import { Points } from '../../../../src/objects/Points.js';
 
 
 export default QUnit.module( 'Objects', () => {
 export default QUnit.module( 'Objects', () => {
 
 
 	QUnit.module( 'Points', () => {
 	QUnit.module( 'Points', () => {
 
 
 		// INHERITANCE
 		// INHERITANCE
-		QUnit.todo( 'isPoints', ( assert ) => {
+		QUnit.test( 'isPoints', ( assert ) => {
 
 
-			assert.ok( false, 'everything\'s gonna be alright' );
+			var points = new Points();
+	
+			assert.strictEqual( points instanceof Object3D, true, 'Points extends from Object3D' );
 
 
 		} );
 		} );
 
 

+ 8 - 3
test/unit/src/objects/SkinnedMesh.tests.js

@@ -1,15 +1,20 @@
 /* global QUnit */
 /* global QUnit */
 
 
-// import { SkinnedMesh } from '../../../../src/objects/SkinnedMesh.js';
+import { Object3D } from '../../../../src/core/Object3D.js';
+import { Mesh } from '../../../../src/objects/Mesh.js';
+import { SkinnedMesh } from '../../../../src/objects/SkinnedMesh.js';
 
 
 export default QUnit.module( 'Objects', () => {
 export default QUnit.module( 'Objects', () => {
 
 
 	QUnit.module( 'SkinnedMesh', () => {
 	QUnit.module( 'SkinnedMesh', () => {
 
 
 		// INHERITANCE
 		// INHERITANCE
-		QUnit.todo( 'Extending', ( assert ) => {
+		QUnit.test( 'Extending', ( assert ) => {
 
 
-			assert.ok( false, 'everything\'s gonna be alright' );
+			var skinnedMesh = new SkinnedMesh();
+	
+			assert.strictEqual( skinnedMesh instanceof Object3D, true, 'SkinnedMesh extends from Object3D' );
+			assert.strictEqual( skinnedMesh instanceof Mesh, true, 'SkinnedMesh extends from Mesh' );
 
 
 		} );
 		} );
 
 

+ 6 - 3
test/unit/src/objects/Sprite.tests.js

@@ -1,15 +1,18 @@
 /* global QUnit */
 /* global QUnit */
 
 
-// import { Sprite } from '../../../../src/objects/Sprite.js';
+import { Object3D } from '../../../../src/core/Object3D.js';
+import { Sprite } from '../../../../src/objects/Sprite.js';
 
 
 export default QUnit.module( 'Objects', () => {
 export default QUnit.module( 'Objects', () => {
 
 
 	QUnit.module( 'Sprite', () => {
 	QUnit.module( 'Sprite', () => {
 
 
 		// INHERITANCE
 		// INHERITANCE
-		QUnit.todo( 'Extending', ( assert ) => {
+		QUnit.test( 'Extending', ( assert ) => {
 
 
-			assert.ok( false, 'everything\'s gonna be alright' );
+			var sprite = new Sprite();
+	
+			assert.strictEqual( sprite instanceof Object3D, true, 'Sprite extends from Object3D' );
 
 
 		} );
 		} );