HemisphereLight.tests.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 { HemisphereLight } from '../../../../src/lights/HemisphereLight';
  8. export default QUnit.module( 'Lights', () => {
  9. QUnit.module( 'HemisphereLight', ( hooks ) => {
  10. var lights = undefined;
  11. hooks.beforeEach( function () {
  12. const parameters = {
  13. skyColor: 0x123456,
  14. groundColor: 0xabc012,
  15. intensity: 0.6
  16. };
  17. lights = [
  18. new HemisphereLight(),
  19. new HemisphereLight( parameters.skyColor ),
  20. new HemisphereLight( parameters.skyColor, parameters.groundColor ),
  21. new HemisphereLight( parameters.skyColor, parameters.groundColor, parameters.intensity ),
  22. ];
  23. } );
  24. // INHERITANCE
  25. QUnit.todo( "Extending", ( assert ) => {
  26. assert.ok( false, "everything's gonna be alright" );
  27. } );
  28. // INSTANCING
  29. QUnit.todo( "Instancing", ( assert ) => {
  30. assert.ok( false, "everything's gonna be alright" );
  31. } );
  32. // PUBLIC STUFF
  33. QUnit.todo( "isHemisphereLight", ( assert ) => {
  34. assert.ok( false, "everything's gonna be alright" );
  35. } );
  36. QUnit.todo( "copy", ( 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. } );
粤ICP备19079148号