DirectionalLight.tests.js 1.2 KB

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