DirectionalLight.tests.js 1.1 KB

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