提交 2e89cf6d 编写于 作者: B Ben Houston

pull out test suite constants into their own script.

上级 fe2020a8
......@@ -2,17 +2,6 @@
* @author bhouston / http://exocortex.com
*/
var x = 2;
var y = 3;
var z = 4;
var w = 5;
var negInf = new THREE.Vector3( -Infinity, -Infinity );
var posInf = new THREE.Vector3( Infinity, Infinity );
var zero = new THREE.Vector3();
var one = new THREE.Vector3( 1, 1, 1 );
module( "Box2" );
test( "constructor", function() {
......
......@@ -2,17 +2,6 @@
* @author bhouston / http://exocortex.com
*/
var x = 2;
var y = 3;
var z = 4;
var w = 5;
var negInf = new THREE.Vector3( -Infinity, -Infinity, -Infinity );
var posInf = new THREE.Vector3( Infinity, Infinity, Infinity );
var zero = new THREE.Vector3();
var one = new THREE.Vector3( 1, 1, 1 );
module( "Box3" );
test( "constructor", function() {
......
/**
* @author bhouston / http://exocortex.com
*/
var x = 2;
var y = 3;
var z = 4;
var w = 5;
var negInf = new THREE.Vector3( -Infinity, -Infinity );
var posInf = new THREE.Vector3( Infinity, Infinity );
var zero = new THREE.Vector3();
var one = new THREE.Vector3( 1, 1, 1 );
var two = new THREE.Vector3( 1, 1, 1 );
......@@ -2,15 +2,6 @@
* @author bhouston / http://exocortex.com
*/
x = 2;
y = 3;
z = 4;
w = 5;
zero = new THREE.Vector3();
one = new THREE.Vector3( 1, 1, 1 );
two = new THREE.Vector3( 1, 1, 1 );
module( "Plane" );
test( "constructor", function() {
......
......@@ -2,14 +2,6 @@
* @author bhouston / http://exocortex.com
*/
var x = 2;
var y = 3;
var z = 4;
var w = 5;
var zero = new THREE.Vector3();
var one = new THREE.Vector3( 1, 1, 1 );
module( "Sphere" );
test( "constructor", function() {
......@@ -37,7 +29,7 @@ test( "copy", function() {
});
test( "set", function() {
var a = new THREE.Vector3();
var a = new THREE.Sphere();
ok( a.center.equals( zero ), "Passed!" );
ok( a.radius == 0, "Passed!" );
......
......@@ -2,11 +2,6 @@
* @author bhouston / http://exocortex.com
*/
var x = 2;
var y = 3;
var z = 4;
var w = 5;
module( "Vector2" );
test( "constructor", function() {
......
......@@ -2,11 +2,6 @@
* @author bhouston / http://exocortex.com
*/
var x = 2;
var y = 3;
var z = 4;
var w = 5;
module( "Vector3" );
test( "constructor", function() {
......
......@@ -2,11 +2,6 @@
* @author bhouston / http://exocortex.com
*/
var x = 2;
var y = 3;
var z = 4;
var w = 5;
module( "Vector4" );
test( "constructor", function() {
......
......@@ -9,6 +9,7 @@
<div id="qunit"></div>
<script src="../build/three.min.js"></script>
<script src="qunit/qunit-1.10.0.js"></script>
<script src="core/Constants.js"></script>
<script src="core/Vector2.js"></script>
<script src="core/Vector3.js"></script>
<script src="core/Vector4.js"></script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册