HemisphereLight.tests.js 1.3 KB

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