Sha256: 54bbc4410ea9a374c04d106a7214903e3495c9d887ab0127d9d94c918e0ac527

Contents?: true

Size: 700 Bytes

Versions: 9

Compression:

Stored size: 700 Bytes

Contents

describe("Shader '<%=file_name%>'", 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

9 entries across 9 versions & 1 rubygems

Version Path
jax-1.1.1 lib/jax/generators/shader/templates/spec.js.tt
jax-1.1.0 lib/jax/generators/shader/templates/spec.js.tt
jax-1.1.0.rc1 lib/jax/generators/shader/templates/spec.js.tt
jax-1.0.1 lib/jax/generators/shader/templates/spec.js.tt
jax-1.0.1.rc2 lib/jax/generators/shader/templates/spec.js.tt
jax-1.0.1.rc1 lib/jax/generators/shader/templates/spec.js.tt
jax-1.0.0 lib/jax/generators/shader/templates/spec.js.tt
jax-0.0.0.10 lib/jax/generators/shader/templates/spec.js.tt
jax-0.0.0.9 lib/jax/generators/shader/templates/spec.js.tt