فهرست منبع

make it possible to run unit tests against either three.js, three.min.js, three-math.js as well as direct sources.

Ben Houston 12 سال پیش
والد
کامیت
4749e9bad3
4فایلهای تغییر یافته به همراه91 افزوده شده و 1 حذف شده
  1. 1 1
      test/sources.html
  2. 30 0
      test/three-math.html
  3. 30 0
      test/three.html
  4. 30 0
      test/three.min.html

+ 1 - 1
test/index.html → test/sources.html

@@ -2,7 +2,7 @@
 <html>
 <head>
   <meta charset="utf-8">
-  <title>ThreeJS Test Suite</title>
+  <title>ThreeJS Test Suite - Using Files in /src</title>
   <link rel="stylesheet" href="qunit/qunit-1.10.0.css">
 </head>
 <body>

+ 30 - 0
test/three-math.html

@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  <title>ThreeJS Test Suite - Using build/Three-math.js</title>
+  <link rel="stylesheet" href="qunit/qunit-1.10.0.css">
+</head>
+<body>
+  <div id="qunit"></div>
+  <script src="qunit/qunit-1.10.0.js"></script>
+
+  <!-- add ThreeJS sources to test below -->
+
+  <script src="../build/Three-math.js"></script>
+
+  <!-- add class-based unit tests below -->
+
+  <script src="core/Constants.js"></script>
+  <script src="core/Box2.js"></script>
+  <script src="core/Box3.js"></script>
+  <script src="core/Plane.js"></script>
+  <script src="core/Ray.js"></script>
+  <script src="core/Sphere.js"></script>
+  <script src="core/Triangle3.js"></script>
+  <script src="core/Vector2.js"></script>
+  <script src="core/Vector3.js"></script>
+  <script src="core/Vector4.js"></script>
+  
+</body>
+</html>

+ 30 - 0
test/three.html

@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  <title>ThreeJS Test Suite - Using build/Three.js</title>
+  <link rel="stylesheet" href="qunit/qunit-1.10.0.css">
+</head>
+<body>
+  <div id="qunit"></div>
+  <script src="qunit/qunit-1.10.0.js"></script>
+
+  <!-- add ThreeJS sources to test below -->
+
+  <script src="../build/Three.js"></script>
+
+  <!-- add class-based unit tests below -->
+
+  <script src="core/Constants.js"></script>
+  <script src="core/Box2.js"></script>
+  <script src="core/Box3.js"></script>
+  <script src="core/Plane.js"></script>
+  <script src="core/Ray.js"></script>
+  <script src="core/Sphere.js"></script>
+  <script src="core/Triangle3.js"></script>
+  <script src="core/Vector2.js"></script>
+  <script src="core/Vector3.js"></script>
+  <script src="core/Vector4.js"></script>
+  
+</body>
+</html>

+ 30 - 0
test/three.min.html

@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  <title>ThreeJS Test Suite - Using build/Three.min.js</title>
+  <link rel="stylesheet" href="qunit/qunit-1.10.0.css">
+</head>
+<body>
+  <div id="qunit"></div>
+  <script src="qunit/qunit-1.10.0.js"></script>
+
+  <!-- add ThreeJS sources to test below -->
+
+  <script src="../build/Three.min.js"></script>
+
+  <!-- add class-based unit tests below -->
+
+  <script src="core/Constants.js"></script>
+  <script src="core/Box2.js"></script>
+  <script src="core/Box3.js"></script>
+  <script src="core/Plane.js"></script>
+  <script src="core/Ray.js"></script>
+  <script src="core/Sphere.js"></script>
+  <script src="core/Triangle3.js"></script>
+  <script src="core/Vector2.js"></script>
+  <script src="core/Vector3.js"></script>
+  <script src="core/Vector4.js"></script>
+  
+</body>
+</html>