Sha256: ff5ca9be59cb81a51686eb6d0446ad0160270a48f2c4b09eb7941c5cf22a03b1

Contents?: true

Size: 700 Bytes

Versions: 13

Compression:

Stored size: 700 Bytes

Contents

describe("'<%=file_name%>' shader", function() {
  var material, mesh;

  beforeEach(function() { mesh = new Jax.Mesh.Quad(); });

  describe("stand-alone", function() {
    beforeEach(function() { mesh.material = new Jax.Material.<%=class_name%>(); });

    it("should render without error", function() {
      expect(function() { mesh.render(SPEC_CONTEXT); }).not.toThrow();
    });
  });

  describe("as a layer", function() {
    beforeEach(function() {
      mesh.material = new Jax.Material({layers:[{
        type:"<%=class_name%>"
      }]});
    });

    it("should render without error", function() {
      expect(function() { mesh.render(SPEC_CONTEXT); }).not.toThrow();
    });
  });
});

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
jax-2.0.12 templates/shader_spec.js.erb
jax-2.0.11 templates/shader_spec.js.erb
jax-2.0.10 templates/shader_spec.js.erb
jax-2.0.9 templates/shader_spec.js.erb
jax-2.0.8 templates/shader_spec.js.erb
jax-2.0.7 templates/shader_spec.js.erb
jax-2.0.6 templates/shader_spec.js.erb
jax-2.0.5 templates/shader_spec.js.erb
jax-2.0.4 templates/shader_spec.js.erb
jax-2.0.3 templates/shader_spec.js.erb
jax-2.0.2 templates/shader_spec.js.erb
jax-2.0.1 templates/shader_spec.js.erb
jax-2.0.0 templates/shader_spec.js.erb