AnimationAction.js 931 B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * @author TristanVALCKE / https://github.com/TristanVALCKE
  3. */
  4. //Todo
  5. console.warn("Todo: Unit tests of AnimationAction")
  6. //QUnit.module( "AnimationAction" );
  7. //
  8. //QUnit.test( "Instancing", function( assert ) {
  9. //
  10. // var mixer = new THREE.AnimationMixer();
  11. // var clip = new THREE.AnimationClip();
  12. //
  13. // assert.throws(
  14. // function() {
  15. // new THREE.AnimationAction()
  16. // },
  17. // new Error("Mixer can't be null or undefined !"),
  18. // "raised error instance about undefined or null mixer"
  19. // );
  20. //
  21. // assert.throws(
  22. // function() {
  23. // new THREE.AnimationAction(mixer)
  24. // },
  25. // new Error("Clip can't be null or undefined !"),
  26. // "raised error instance about undefined or null clip"
  27. // );
  28. //
  29. // var animationAction = new THREE.AnimationAction(mixer, clip);
  30. // assert.ok( animationAction, "animationAction instanciated" );
  31. //
  32. //} );