RectAreaLight.tests.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 { RectAreaLight } from '../../../../src/lights/RectAreaLight';
  8. export default QUnit.module( 'Lights', () => {
  9. QUnit.module( 'RectAreaLight', ( hooks ) => {
  10. var lights = undefined;
  11. hooks.beforeEach( function () {
  12. const parameters = {
  13. color: 0xaaaaaa,
  14. intensity: 0.5,
  15. width: 100,
  16. height: 50
  17. };
  18. lights = [
  19. new RectAreaLight( parameters.color ),
  20. new RectAreaLight( parameters.color, parameters.intensity ),
  21. new RectAreaLight( parameters.color, parameters.intensity, parameters.width ),
  22. new RectAreaLight( parameters.color, parameters.intensity, parameters.width, parameters.height )
  23. ];
  24. } );
  25. // INHERITANCE
  26. QUnit.todo( "Extending", ( assert ) => {
  27. assert.ok( false, "everything's gonna be alright" );
  28. } );
  29. // INSTANCING
  30. QUnit.todo( "Instancing", ( assert ) => {
  31. assert.ok( false, "everything's gonna be alright" );
  32. } );
  33. // PUBLIC STUFF
  34. QUnit.todo( "isRectAreaLight", ( assert ) => {
  35. assert.ok( false, "everything's gonna be alright" );
  36. } );
  37. QUnit.todo( "copy", ( assert ) => {
  38. assert.ok( false, "everything's gonna be alright" );
  39. } );
  40. QUnit.todo( "toJSON", ( assert ) => {
  41. assert.ok( false, "everything's gonna be alright" );
  42. } );
  43. // OTHERS
  44. QUnit.test( 'Standard light tests', ( assert ) => {
  45. runStdLightTests( assert, lights );
  46. } );
  47. } );
  48. } );