| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- /**
- * @author TristanVALCKE / https://github.com/Itee
- * @author moraxy / https://github.com/moraxy
- */
- /* global QUnit */
- import { runStdLightTests } from '../../qunit-utils';
- import { DirectionalLight } from '../../../../src/lights/DirectionalLight';
- export default QUnit.module( 'Lights', () => {
- QUnit.module( 'DirectionalLight', ( hooks ) => {
- var lights = undefined;
- hooks.beforeEach( function () {
- const parameters = {
- color: 0xaaaaaa,
- intensity: 0.8
- };
- lights = [
- new DirectionalLight(),
- new DirectionalLight( parameters.color ),
- new DirectionalLight( parameters.color, parameters.intensity )
- ];
- } );
- // INHERITANCE
- QUnit.todo( "Extending", ( assert ) => {
- assert.ok( false, "everything's gonna be alright" );
- } );
- // INSTANCING
- QUnit.todo( "Instancing", ( assert ) => {
- assert.ok( false, "everything's gonna be alright" );
- } );
- // PUBLIC STUFF
- QUnit.todo( "isDirectionalLight", ( assert ) => {
- assert.ok( false, "everything's gonna be alright" );
- } );
- QUnit.todo( "copy", ( assert ) => {
- assert.ok( false, "everything's gonna be alright" );
- } );
- // OTHERS
- QUnit.test( 'Standard light tests', ( assert ) => {
- runStdLightTests( assert, lights );
- } );
- } );
- } );
|