Light.tests.js 1.2 KB

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