Permalink
Browse files

ported all quint tests to mocha, wrote new unit tests, created makefile

  • Loading branch information...
1 parent defb2f9 commit b01a647ded71927d5555ff37e6130fa3d8941237 @hapticdata committed Nov 2, 2012
Showing with 1,739 additions and 5,315 deletions.
  1. +1 −0 CHANGES.md
  2. +11 −0 Makefile
  3. +293 −278 build/toxiclibs.js
  4. +1 −1 build/toxiclibs.min.js
  5. +12 −1 docs/sugar.md
  6. +1 −1 lib/toxi/color/TColor.js
  7. +25 −5 lib/toxi/geom/Cone.js
  8. +10 −3 lib/toxi/geom/Ray2D.js
  9. +12 −14 lib/toxi/geom/mesh/meshCommon.js
  10. +1 −1 lib/toxi/geom/vectors.js
  11. +38 −42 lib/toxi/math/noise/simplexNoise.js
  12. +198 −202 lib/toxi/physics2d/VerletPhysics2D.js
  13. +4 −6 lib/toxi/physics2d/behaviors.js
  14. +4 −4 lib/toxi/physics2d/behaviors/GravityBehavior.js
  15. +1 −1 {tests/mocha → test}/circulars.js
  16. +150 −0 test/color.TColor.js
  17. +67 −0 test/geom.Cone.js
  18. +17 −0 test/geom.Ellipse.js
  19. +38 −0 test/geom.Ray2D.js
  20. +78 −0 test/geom.Rect.js
  21. +5 −2 tests/mocha/Sphere.js → test/geom.Sphere.js
  22. +3 −2 tests/mocha/Spline2D.js → test/geom.Spline2D.js
  23. +167 −0 test/geom.Triangle2D.js
  24. +331 −0 test/geom.Vec2D.js
  25. +43 −0 test/geom.Vec3D.js
  26. +5 −6 tests/mocha/OBJWriter.js → test/geom.mesh.OBJWriter.js
  27. +113 −0 test/geom.mesh.Terrain.js
  28. +3 −3 tests/mocha/TriangleMesh.js → test/geom.mesh.TriangleMesh.js
  29. +26 −0 test/math.noise.SimplexNoise.js
  30. +2 −2 {tests/mocha → test}/packages.js
  31. +79 −0 test/physics2d.VerletPhysics2D.js
  32. +0 −10 tests/amd/index.html
  33. +0 −5 tests/amd/javascripts/config.js
  34. +0 −17 tests/amd/javascripts/main.js
  35. +0 −2,041 tests/amd/javascripts/require.js
  36. +0 −9 tests/amd/stylesheets/style.css
  37. +0 −44 tests/circle.html
  38. +0 −59 tests/cone.html
  39. +0 −59 tests/mocha/TColor.js
  40. +0 −225 tests/qunit/qunit.css
  41. +0 −1,448 tests/qunit/qunit.js
  42. +0 −31 tests/ray2d.html
  43. +0 −81 tests/rect.html
  44. +0 −91 tests/tcolor.html
  45. +0 −108 tests/terrain.html
  46. +0 −123 tests/triangle2d.html
  47. +0 −273 tests/vec2d.html
  48. +0 −47 tests/vec3d.html
  49. +0 −70 tests/verletphysics2d.html
View
@@ -1,5 +1,6 @@
#Toxiclibs.js CHANGES
##v0.1.3
+* wrote new unit tests for TColor, and ported all qunit unit tests to mocha
* added docs/sugar.md to explain the added features of toxiclibs.js
* added toxi.color.TColor#toInt for numbers in integer form, such as in three.js
* added toxi.color.TColor#newCSS to ease converting any css color to TColor
View
@@ -0,0 +1,11 @@
+REPORTER ?= list
+
+build-dev:
+ node utils/r.js -o utils/build_profiles/app.build.js
+build-min:
+ node utils/r.js -o utils/build_profiles/app.build.min.js
+build: build-dev build-min
+test:
+ mocha --reporter $(REPORTER) test/*
+
+.PHONY: all build build-min build-dev test
Oops, something went wrong.

0 comments on commit b01a647

Please sign in to comment.