Sha256: a17af400e57c1c80e9b3aea02c3eb2fd63b35f6a188b18056188a255ff703f20

Contents?: true

Size: 542 Bytes

Versions: 9

Compression:

Stored size: 542 Bytes

Contents

describe("Material segment 'shadow_map'", function() {
  var context;
  var matr;
  
  beforeEach(function() {
    context = new Jax.Context(document.getElementById('canvas-element'));
    matr = new Jax.Material();
    spyOn(matr, 'prepareShader').andCallThrough();
  });
  
  afterEach(function() { context.dispose(); });
  
  it("should compile successfully", function() {
    matr.addLayer(new Jax.Material.ShadowMap());
    
    new Jax.Mesh({material:matr}).render(context);
    expect(matr.prepareShader).toHaveBeenCalled();
  });
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
jax-0.0.0.9 spec/javascripts/shaders/shadow_map_spec.js
jax-0.0.0.8 spec/javascripts/shaders/shadow_map_spec.js
jax-0.0.0.7 spec/javascripts/shaders/shadow_map_spec.js
jax-0.0.0.6 spec/javascripts/shaders/shadow_map_spec.js
jax-0.0.0.5 spec/javascripts/shaders/shadow_map_spec.js
jax-0.0.0.4 spec/javascripts/shaders/shadow_map_spec.js
jax-0.0.0.3 spec/javascripts/jax/builtin/materials/shadow_map_spec.js
jax-0.0.0.2 spec/javascripts/jax/builtin/materials/shadow_map_spec.js
jax-0.0.0.1 spec/javascripts/jax/builtin/materials/shadow_map_spec.js