Sha256: d4789820fbf04c822c4379326a55f28eed98c493ecd0b5020c3a536b873c4cfe

Contents?: true

Size: 901 Bytes

Versions: 9

Compression:

Stored size: 901 Bytes

Contents

window.addEventListener("load", function() {
  var canvas = document.createElement("canvas");
  canvas.setAttribute("width", "600");
  canvas.setAttribute("height", "400");
  canvas.setAttribute("id", "canvas-element");
  canvas.style.visibility = "hidden";
  document.body.appendChild(canvas);
  
  var style = document.createElement('style');
  style.innerHTML = ".resultMessage.fail { white-space:pre-line; }";
  document.getElementsByTagName('head')[0].appendChild(style);
}, false);

describe("Jax", function() {
  it("should be loaded", function() {
    /* if false, then it didn't load all of the Jax libraries successfully */
    expect(Jax.loaded).toBeTrue();
  });
  
  it("should create the top-level view container", function() {
    expect(Jax.views).not.toBeUndefined();
  });
  
  it("should initialize the route set", function() {
    expect(Jax.routes).not.toBeUndefined();
  });
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
jax-0.0.0.9 spec/javascripts/jax_spec.js
jax-0.0.0.8 spec/javascripts/jax_spec.js
jax-0.0.0.7 spec/javascripts/jax_spec.js
jax-0.0.0.6 spec/javascripts/jax_spec.js
jax-0.0.0.5 spec/javascripts/jax_spec.js
jax-0.0.0.4 spec/javascripts/jax_spec.js
jax-0.0.0.3 spec/javascripts/jax_spec.js
jax-0.0.0.2 spec/javascripts/jax_spec.js
jax-0.0.0.1 spec/javascripts/jax_spec.js