Last active
December 16, 2015 08:59
-
-
Save kmayer/5409685 to your computer and use it in GitHub Desktop.
Sample Jasmine spec runner for Sencha Touch 2.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Jasmine Spec Runner</title> | |
<link rel="shortcut icon" type="image/png" href="jasmine-1.3.1/jasmine_favicon.png"> | |
<link rel="stylesheet" type="text/css" href="jasmine-1.3.1/jasmine.css"> | |
<script type="text/javascript" src="jasmine-1.3.1/jasmine.js"></script> | |
<script type="text/javascript" src="jasmine-1.3.1/jasmine-html.js"></script> | |
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<!-- include source files here... --> | |
<script type="text/javascript" src="../touch/sencha-touch-all-debug.js"></script> | |
<script type="text/javascript"> | |
Ext.Loader.setPath({ | |
'Ext': '../touch/src', | |
'SenchaBdd': '../app' | |
}); | |
Ext.application({ | |
name: 'SenchaBdd', | |
launch: function () { | |
jasmine.getEnv().addReporter(new jasmine.HtmlReporter()); | |
jasmine.getEnv().execute(); | |
} | |
}); | |
</script> | |
<!-- include spec files here... --> | |
<script type="text/javascript" src="support/SpecHelper.js"></script> | |
<script type="text/javascript" src="sanitySpec.js"></script> | |
</head> | |
<body> | |
<div id="jasmine_content"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment