AmbientLight.tests.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* global QUnit */
  2. import { runStdLightTests } from '../../utils/qunit-utils';
  3. import { AmbientLight } from '../../../../src/lights/AmbientLight';
  4. export default QUnit.module( 'Lights', () => {
  5. QUnit.module( 'ArrowHelper', ( hooks ) => {
  6. var lights = undefined;
  7. hooks.beforeEach( function () {
  8. const parameters = {
  9. color: 0xaaaaaa,
  10. intensity: 0.5
  11. };
  12. lights = [
  13. new AmbientLight(),
  14. new AmbientLight( parameters.color ),
  15. new AmbientLight( 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( "isAmbiantLight", ( assert ) => {
  28. assert.ok( false, "everything's gonna be alright" );
  29. } );
  30. // OTHERS
  31. QUnit.test( 'Standard light tests', ( assert ) => {
  32. runStdLightTests( assert, lights );
  33. } );
  34. } );
  35. } );
粤ICP备19079148号