Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
keep grunt-generated html testrunner, instead of a duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnR committed Dec 31, 2013
1 parent 57d03ca commit c1e1bfd
Show file tree
Hide file tree
Showing 10 changed files with 83 additions and 3,452 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
*.sublime-project
*.sublime-workspace
.grunt
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,15 @@ module.exports = function( grunt ) {
test: {
src: 'src/FormModelJSON.js ',
options: {
keepRunner: true,
specs: 'test/spec/*.js',
helpers: [ 'test/mock/*.js' ],
template: require( 'grunt-template-jasmine-requirejs' ),
templateOptions: {
requireConfig: {
baseUrl: 'src',
paths: {
jquery: '../test/lib/jquery',
jquery: '../lib/jquery',
'jquery.xpath': '../lib/jquery-xpath/jquery.xpath'
}
}
Expand Down
80 changes: 80 additions & 0 deletions _SpecRunner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner</title>


<link rel="stylesheet" type="text/css" href=".grunt/grunt-contrib-jasmine/jasmine.css">


<script src=".grunt/grunt-contrib-jasmine/require.js"></script>
<script>
require.onError = function(error) {
var message = error.requireType + ': ';
if (error.requireType === 'scripterror' || error.requireType === 'notloaded' && error.requireModules) {
message += 'Illegal path or script error: ' + '[\'' + error.requireModules.join("', '") + '\']';
} else {
message += error.message;
}

throw Error(message);
};
</script>



<script src=".grunt/grunt-contrib-jasmine/jasmine.js"></script>

<script src=".grunt/grunt-contrib-jasmine/jasmine-html.js"></script>

<script src="test/mock/form-model.mock.js"></script>

<script src="test/mock/instances.mock.js"></script>

<script src="test/mock/transforms.mock.js"></script>



<script>



require.config({
"baseUrl": "src",
"paths": {
"jquery": "../lib/jquery",
"jquery.xpath": "../lib/jquery-xpath/jquery.xpath"
}
});

</script>

<script>
function launchTest() {
require([


'FormModelJSON'

],
function(){
require(['test/spec/model-json.spec.js','.grunt/grunt-contrib-jasmine/reporter.js'], function(){
require(['.grunt/grunt-contrib-jasmine/jasmine-helper.js'], function(){
// good to go! Our tests should already be running.
})
})
}
)
}
</script>


<script>
launchTest();
</script>

</head>
<body>
</body>
</html>
File renamed without changes.
20 changes: 0 additions & 20 deletions test/MIT.LICENSE

This file was deleted.

20 changes: 0 additions & 20 deletions test/lib/jasmine-1.3.1/MIT.LICENSE

This file was deleted.

Loading

0 comments on commit c1e1bfd

Please sign in to comment.