浏览代码

Add missings async assert timeout

Tristan VALCKE 7 年之前
父节点
当前提交
d58163a5fa

+ 2 - 0
test/unit/editor/old_to_convert/Serialization.tests.js

@@ -7,6 +7,8 @@ QUnit.module( "Serialization" );
 
 QUnit.test( "Test Serialization", function( assert ) {
 
+	assert.timeout( 1000 );
+
 	// setup
 	var editor = new Editor();
 	var done = assert.async();

+ 2 - 0
test/unit/src/core/BufferGeometry.tests.js

@@ -547,6 +547,8 @@ export default QUnit.module( 'Core', () => {
 
 		QUnit.test( "fromGeometry/fromDirectGeometry", ( assert ) => {
 
+			assert.timeout( 1000 );
+
 			var a = new BufferGeometry();
 			// BoxGeometry is a bit too simple but works fine in a pinch
 			// var b = new BoxGeometry( 1, 1, 1 );

+ 12 - 1
test/unit/src/core/DirectGeometry.tests.js

@@ -48,6 +48,8 @@ export default QUnit.module( 'Core', () => {
 
 		QUnit.test( "fromGeometry", ( assert ) => {
 
+			assert.timeout( 1000 );
+
 			var a = new DirectGeometry();
 
 			var asyncDone = assert.async(); // tell QUnit when we're done with async stuff
@@ -237,7 +239,16 @@ export default QUnit.module( 'Core', () => {
 
 				asyncDone();
 
-			} );
+			}, onProgress, onError );
+
+			function onProgress() {}
+
+			function onError( error ) {
+
+				console.error( error );
+				asyncDone();
+
+			}
 
 		} );