SpecRunner.html 1.94 KB
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Jasmine Spec Runner v2.2.0</title>

  <link rel="shortcut icon" type="image/png" href="lib/jasmine-2.2.0/jasmine_favicon.png">
  <link rel="stylesheet" href="lib/jasmine-2.2.0/jasmine.css">

  <!-- include source files here... -->
  <script src="../js/require.js"></script>

  <!-- include spec files here...if you not use require.js library -->

  <script type="text/javascript">

        require(['../js/requirejs-config'],function(){

            require.config({
                paths: {
                    "jasmine": test+'/lib/jasmine-2.2.0/jasmine',
                    "jasmine-html": test+'/lib/jasmine-2.2.0/jasmine-html',
                    "jasmine-jquery": test+'/lib/jasmine-plugins/jasmine-jquery',
                    "jasmine-boot": test+'/lib/jasmine-2.2.0/boot',
                    "domReady": test+'/lib/requirejs-plugins/domReady'
                },
                shim:{
                  jasmine:{
                    exports: 'jasmine'
                  },
                  'jasmine-html':{
                    deps:['jasmine'],
                    exports: 'jasmine'
                  },
                  'jasmine-boot':{
                    deps:['jasmine-html','jasmine'],
                    exports:'jasmine'
                  }
                }
            });

            require(
                [
                    "domReady!",
                    "./spec/MainSpec.js"
                ],
                function(){

                    /* Run all the loaded test specs.
                    *
                    *  @see boot.js file that contains a jasmine.getEnv().execute()
                    *       function added to window.onload event
                    */
                    if(typeof window.onload == 'function'){
                      window.onload();
                    }
                }
            );
        });

    </script>

</head>

<body>
</body>
</html>