Sha256: ac929b37ed60f005bea20da688c0fa398b2ab116d8a5760ce931b26cffdfcfc0
Contents?: true
Size: 906 Bytes
Versions: 4
Compression:
Stored size: 906 Bytes
Contents
describe("Shader '<%=file_name%>'", function() { var context, material, mesh; beforeEach(function() { context = new Jax.Context('webgl-canvas'); mesh = new Jax.Mesh.Quad(); }); /* dispose the context so it doesn't continue using resources after the tests have completed */ afterEach(function() { context.dispose(); }); describe("stand-alone", function() { beforeEach(function() { mesh.material = new Jax.Material.<%=class_name%>(); }); it("should render without error", function() { expect(function() { mesh.render(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(context); }).not.toThrow(); }); }); });
Version data entries
4 entries across 4 versions & 1 rubygems