code: function createStartFn( karma, requirejs, laxarSpec ) {
        'use strict';
  
        var testRunner = laxarSpec.testRunner || 'laxar/laxar_testing';
        var jasmineMajor = laxarSpec.jasmineMajorVersion || 1;
        var jasmine = jasmineMajor > 1 ? window.jasmineRequire.core( window.jasmineRequire ) : window.jasmine;
        // We need to expose jasmine on the global object for angular-mocks:
        window.jasmine = jasmine;
  
        var jasmineEnv = jasmine.getEnv();
        jasmineEnv.addReporter( jasmineMajor > 1 ?
           new Jasmine2KarmaReporter( karma, jasmineEnv ) :
           new Jasmine1KarmaReporter( karma, jasmineEnv ) );
  
        if( jasmineMajor > 1 ) {
           var jasmineInterface = jasmineRequire.interface( jasmine, jasmineEnv );
           for( var property in jasmineInterface ) {
              if( jasmineInterface.hasOwnProperty( property ) ) {
                 window[ property ] = jasmineInterface[property];
              }
           }
        }
  
        return function() {
           requirejs.config( laxarSpec.requireConfig );
           requirejs( [testRunner], function( runner ) {
              // Works with both test-runners: 'laxar/laxar_testing' and new 'laxar-testing':
              ( runner.testing || runner ).runSpec( laxarSpec, jasmineEnv );
           } );
        };
     }
docs: Copyright 2014 aixigo AG
  Released under the MIT license.
  http://laxarjs.org/license
   /*jshint browser: true /*global Jasmine1KarmaReporter, Jasmine2KarmaReporter