DirectionalLight.tests.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. * @author TristanVALCKE / https://github.com/Itee
  3. * @author moraxy / https://github.com/moraxy
  4. */
  5. /* global QUnit */
  6. import { runStdLightTests } from '../../qunit-utils';
  7. import { DirectionalLight } from '../../../../src/lights/DirectionalLight';
  8. export default QUnit.module( 'Lights', () => {
  9. QUnit.module( 'DirectionalLight', ( hooks ) => {
  10. var lights = undefined;
  11. hooks.beforeEach( function () {
  12. const parameters = {
  13. color: 0xaaaaaa,
  14. intensity: 0.8
  15. };
  16. lights = [
  17. new DirectionalLight(),
  18. new DirectionalLight( parameters.color ),
  19. new DirectionalLight( parameters.color, parameters.intensity )
  20. ];
  21. } );
  22. // INHERITANCE
  23. QUnit.todo( "Extending", ( assert ) => {
  24. assert.ok( false, "everything's gonna be alright" );
  25. } );
  26. // INSTANCING
  27. QUnit.todo( "Instancing", ( assert ) => {
  28. assert.ok( false, "everything's gonna be alright" );
  29. } );
  30. // PUBLIC STUFF
  31. QUnit.todo( "isDirectionalLight", ( assert ) => {
  32. assert.ok( false, "everything's gonna be alright" );
  33. } );
  34. QUnit.todo( "copy", ( assert ) => {
  35. assert.ok( false, "everything's gonna be alright" );
  36. } );
  37. // OTHERS
  38. QUnit.test( 'Standard light tests', ( assert ) => {
  39. runStdLightTests( assert, lights );
  40. } );
  41. } );
  42. } );
粤ICP备19079148号