Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

Code Block
<html>
    <head>
        <title id="page-title">Module Tester</title>
        <link rel="stylesheet" type="text/css" href="../../lib/jasmine-1.1.0/jasmine.css">
        <script type="text/javascript" src="../../../src/lib/extjs/ext-all-debug.js"></script>
        <script type="text/javascript" src="../../lib/jasmine-1.1.0/jasmine.js"></script>
        <script type="text/javascript" src="../../lib/jasmine-1.1.0/jasmine-html.js"></script>
        <!-- include specs here -->
        <script type="text/javascript" src="yourSpecFile.js"></script>
        <!-- load application here -->
        <script type="text/javascript">
            Ext.require('Ext.app.Application');
            var Application = null;
            Ext.onReady(function() {
                Application = Ext.create('Ext.app.Application', {
                    //fill in details for your module
                    name: 'Registration',
                    appFolder: '../src/registrationextjs4',
                    controllers: [
                        'TestController'
                    ],
                    launch: function() {
                        //include the tests in the test.html head
                        jasmine.getEnv().addReporter(new jasmine.TrivialReporter());
                        jasmine.getEnv().execute();
                    }
                });
            });
        </script>
    </head>
    <body>
    </body>
</html>