Selaa lähdekoodia

Cleaned up tests.

Mr.doob 12 vuotta sitten
vanhempi
commit
747205428b

+ 20 - 0
test/unit/unittests_examples.html

@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  <title>ThreeJS Unit Tests - Using Files in /examples</title>
+  <link rel="stylesheet" href="qunit-1.10.0.css">
+</head>
+<body>
+  <div id="qunit"></div>
+  <script src="qunit-1.10.0.js"></script>
+
+  <!-- add sources to test below -->
+
+  <script src="../../examples/js/math/ColorConverter.js"></script>
+
+  <!-- add class-based unit tests below -->
+
+  <script src="math/ColorConverter.js"></script>
+</body>
+</html>

+ 2 - 5
test/unit/unittests_sources.html

@@ -9,7 +9,7 @@
   <div id="qunit"></div>
   <script src="qunit-1.10.0.js"></script>
 
-  <!-- add ThreeJS sources to test below -->
+  <!-- add sources to test below -->
 
   <script src="../../src/Three.js"></script>
   <script src="../../src/math/Color.js"></script>
@@ -26,9 +26,8 @@
   <script src="../../src/math/Frustum.js"></script>
   <script src="../../src/math/Plane.js"></script>
   <script src="../../src/math/Sphere.js"></script>
-  <script src="../../src/math/Math.js"></script>  
+  <script src="../../src/math/Math.js"></script>
   <script src="../../src/math/Triangle.js"></script>
-  <script src="../../examples/js/math/ColorConverter.js"></script>
 
   <!-- add class-based unit tests below -->
 
@@ -48,7 +47,5 @@
   <script src="math/Matrix4.js"></script>
   <script src="math/Frustum.js"></script>
   <script src="math/Color.js"></script>
-  <script src="math/ColorConverter.js"></script>
-
 </body>
 </html>

+ 1 - 4
test/unit/unittests_three-math.html

@@ -9,10 +9,9 @@
   <div id="qunit"></div>
   <script src="qunit-1.10.0.js"></script>
 
-  <!-- add ThreeJS sources to test below -->
+  <!-- add sources to test below -->
 
   <script src="../../build/three-math.js"></script>
-  <script src="../../examples/js/math/ColorConverter.js"></script>
 
   <!-- add class-based unit tests below -->
 
@@ -31,7 +30,5 @@
   <script src="math/Matrix3.js"></script>
   <script src="math/Matrix4.js"></script>
   <script src="math/Frustum.js"></script>
-  <script src="math/ColorConverter.js"></script>
-  
 </body>
 </html>

+ 1 - 4
test/unit/unittests_three.html

@@ -9,10 +9,9 @@
   <div id="qunit"></div>
   <script src="qunit-1.10.0.js"></script>
 
-  <!-- add ThreeJS sources to test below -->
+  <!-- add sources to test below -->
 
   <script src="../../build/three.js"></script>
-  <script src="../../examples/js/math/ColorConverter.js"></script>
 
   <!-- add class-based unit tests below -->
 
@@ -31,7 +30,5 @@
   <script src="math/Matrix3.js"></script>
   <script src="math/Matrix4.js"></script>
   <script src="math/Frustum.js"></script>
-  <script src="math/ColorConverter.js"></script>
-  
 </body>
 </html>

+ 1 - 4
test/unit/unittests_three.min.html

@@ -9,10 +9,9 @@
   <div id="qunit"></div>
   <script src="qunit-1.10.0.js"></script>
 
-  <!-- add ThreeJS sources to test below -->
+  <!-- add sources to test below -->
 
   <script src="../../build/three.min.js"></script>
-  <script src="../../examples/js/math/ColorConverter.js"></script>
 
   <!-- add class-based unit tests below -->
 
@@ -31,7 +30,5 @@
   <script src="math/Matrix3.js"></script>
   <script src="math/Matrix4.js"></script>
   <script src="math/Frustum.js"></script>
-  <script src="math/ColorConverter.js"></script>
-  
 </body>
 </html>