Sha256: feed3bba3922aba8179721c65e4537acfa375e31f17dd96f28ce0150250f07f3

Contents?: true

Size: 1.25 KB

Versions: 17

Compression:

Stored size: 1.25 KB

Contents

/**
 * Jasmine 2.0 standalone `boot.js` modified for Karma.
 * This file is registered in `index.js`. This version
 * does not include `HtmlReporter` setup.
 */
(function (global) {

  /*global jasmineRequire */
  'use strict';

  /**
   * Require Jasmine's core files. Specifically, this requires and
   * attaches all of Jasmine's code to the `jasmine` reference.
   */
  var jasmine = jasmineRequire.core(jasmineRequire);

  /**
   * Obtain the public Jasmine API.
   */
  var jasmineInterface = jasmineRequire.interface(jasmine, jasmine.getEnv());

  /**
   * Setting up timing functions to be able to be overridden.
   * Certain browsers (Safari, IE 8, PhantomJS) require this hack.
   */
  global.setTimeout = global.setTimeout;
  global.setInterval = global.setInterval;
  global.clearTimeout = global.clearTimeout;
  global.clearInterval = global.clearInterval;

  /**
   * Add all of the Jasmine global/public interface to the proper
   * global, so a project can use the public interface directly.
   * For example, calling `describe` in specs instead of
   * `jasmine.getEnv().describe`.
   */
  for (var property in jasmineInterface) {
    if (jasmineInterface.hasOwnProperty(property)) {
      global[property] = jasmineInterface[property];
    }
  }

}(window));

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma-jasmine/lib/boot.js
hooch-0.4.1 jasmine/node_modules/karma-jasmine/lib/boot.js
hooch-0.4.0 jasmine/node_modules/karma-jasmine/lib/boot.js
hooch-0.3.0 jasmine/node_modules/karma-jasmine/lib/boot.js
hooch-0.2.1 jasmine/node_modules/karma-jasmine/lib/boot.js
hooch-0.2.0 jasmine/node_modules/karma-jasmine/lib/boot.js
hooch-0.1.0 jasmine/node_modules/karma-jasmine/lib/boot.js
hooch-0.0.8 jasmine/node_modules/karma-jasmine/lib/boot.js
hooch-0.0.7 jasmine/node_modules/karma-jasmine/lib/boot.js
hooch-0.0.6 jasmine/node_modules/karma-jasmine/lib/boot.js
entangled-0.0.16 spec/dummy/public/node_modules/karma-jasmine/lib/boot.js
entangled-0.0.15 spec/dummy/public/node_modules/karma-jasmine/lib/boot.js
entangled-0.0.14 spec/dummy/public/node_modules/karma-jasmine/lib/boot.js
entangled-0.0.13 spec/dummy/public/node_modules/karma-jasmine/lib/boot.js
entangled-0.0.12 spec/dummy/public/node_modules/karma-jasmine/lib/boot.js
entangled-0.0.11 spec/dummy/public/node_modules/karma-jasmine/lib/boot.js
entangled-0.0.10 spec/dummy/public/node_modules/karma-jasmine/lib/boot.js