Sha256: 015102cc0f6aeb1e0f73b388b1f4325130eacaa0f2ea5f287a7f9382e110384e

Contents?: true

Size: 1016 Bytes

Versions: 2

Compression:

Stored size: 1016 Bytes

Contents

describe "Jax.Light.Spot", ->
  light = null
  
  describe "with default options", ->
    beforeEach -> light = new Jax.Light.Spot
  
    it "should be enabled", -> expect(light.enabled).toBeTruthy()
    it "should have a position", -> expect(light.position).toBeTruthy()
    it "should have a direction", -> expect(light.direction).toBeTruthy()
    it "should have a type", -> expect(light.type).toBeDefined()
    it "should have the correct type", -> expect(light.type).toEqual Jax.SPOT_LIGHT
    it "should have constant attenuation", -> expect(light.attenuation.constant).toBeDefined()
    it "should have linear attenuation", -> expect(light.attenuation.linear).toBeDefined()
    it "should have quadratic attenuation", -> expect(light.attenuation.quadratic).toBeDefined()
    it "should have a diffuse color", -> expect(light.color.diffuse).toBeDefined()
    it "should have a specular color", -> expect(light.color.specular).toBeDefined()
    it "should have an energy", -> expect(light.energy).toBeDefined()

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jax-3.0.0.rc2 spec/javascripts/jax/light/spot_spec.js.coffee
jax-3.0.0.rc1 spec/javascripts/jax/light/spot_spec.js.coffee