Sha256: 00b08dc9fdd23925c62b8d107ff978348ff9565504ab78e69e0bbb21fe656d27

Contents?: true

Size: 886 Bytes

Versions: 7

Compression:

Stored size: 886 Bytes

Contents

// Ported from blue-ridge.js in blue-ridge
function require_spec(url, options) {
  require_absolute("/spec/" + url, options)
}

function require_main(url, options) {
  require_absolute("/main/" + url, options)
}

function require_absolute(url, options) {
  // Use synchronous XmlHttpRequests instead of dynamically
  // appended <SCRIPT> tags for IE compatibility.  
  // (IE doesn't guarantee that the tags will be evaluated in order.)
  jQuery.ajax({
    dataType: 'script',
    async: false,
    url: url,
    error: function () {
      alert("Could not load required path " + url)
    }
  })
}

function debug(message) {
  document.writeln(message + " <br/>");
}

function derive_spec_name_from_current_file() {
  var file_prefix = new String(window.location).match(/spec\/(.*?)\.html/)[1];
  return file_prefix + "_spec.js";
}

require_spec(derive_spec_name_from_current_file());

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
rsutphin-shenandoah-0.1.0 lib/shenandoah/javascript/browser/runner.js
rsutphin-shenandoah-0.1.1 lib/shenandoah/javascript/browser/runner.js
rsutphin-shenandoah-0.1.2 lib/shenandoah/javascript/browser/runner.js
shenandoah-0.1.0 lib/shenandoah/javascript/browser/runner.js
shenandoah-0.1.1 lib/shenandoah/javascript/browser/runner.js
shenandoah-0.1.2 lib/shenandoah/javascript/browser/runner.js
shenandoah-0.0.0 lib/shenandoah/javascript/browser/runner.js