Sha256: 0bd89983311de36ec08c34d39137cf795621884ac644f72237433ddb965bdb07
Contents?: true
Size: 884 Bytes
Versions: 2
Compression:
Stored size: 884 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shenandoah-0.2.0 | lib/shenandoah/javascript/browser/runner.js |
shenandoah-0.1.3 | lib/shenandoah/javascript/browser/runner.js |