Sha256: 0b2c5c0628c4838309f6e51065aae25410eca4eb8698bcddb8029b3ee19c48d8

Contents?: true

Size: 442 Bytes

Versions: 2

Compression:

Stored size: 442 Bytes

Contents

window.onload = function () {
  var iframes = document.getElementsByTagName('iframe');
  for (var i = 0; i < iframes.length; ++i) {
    if (!iframes[i].contentWindow.mocha) {
      (function (path) {
        mocha.suite.addTest(new Mocha.Test(path, function () {
          throw new Error("Failed to load " + path + ". Perhaps it failed to compile?");
        }));
      })(iframes[i].getAttribute("data-path"));
    }
  }

  mocha.run();
};

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
konacha-2.0.0.beta2 app/assets/javascripts/konacha/parent.js
konacha-2.0.0.beta1 app/assets/javascripts/konacha/parent.js