Skip to content

Instantly share code, notes, and snippets.

@Ianfeather
Created July 9, 2013 09:15
Show Gist options
  • Save Ianfeather/5955912 to your computer and use it in GitHub Desktop.
Save Ianfeather/5955912 to your computer and use it in GitHub Desktop.
SpecRunner.html
<!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="./spec/javascripts/helpers/SpecHelper.js"></script>
<script src="./spec/javascripts/helpers/jasmine-jquery.js"></script>
<script>
require.config({
"baseUrl": "/",
"paths": {
"jquery": "vendor/assets/javascripts/jquery/jquery-1.7.2.min",
"lib": "public/assets/javascripts/lib",
"handlebars": "vendor/assets/javascripts/handlebars",
"underscore": "vendor/assets/javascripts/underscore",
"jplugs": "vendor/assets/javascripts/jquery/plugins",
"s_code": "vendor/assets/javascripts/omniture/s_code",
"gpt": "http://www.googletagservices.com/tag/js/gpt"
}
});
</script>
<script>
function launchTest() {
require([
'./public/assets/javascripts/lib/analytics/analytics' ,
'./public/assets/javascripts/lib/components/accordion' ,
'./public/assets/javascripts/lib/components/availability_info' ,
'./public/assets/javascripts/lib/components/availability_search' ,
'./public/assets/javascripts/lib/components/cucumber' ,
'./public/assets/javascripts/lib/components/filter' ,
'./public/assets/javascripts/lib/components/gallery' ,
'./public/assets/javascripts/lib/components/group_toggle' ,
'./public/assets/javascripts/lib/components/load_more' ,
'./public/assets/javascripts/lib/components/meta' ,
'./public/assets/javascripts/lib/components/place_list' ,
'./public/assets/javascripts/lib/components/section_toggle' ,
'./public/assets/javascripts/lib/components/sortable' ,
'./public/assets/javascripts/lib/components/stack' ,
'./public/assets/javascripts/lib/components/stack_intro' ,
'./public/assets/javascripts/lib/components/stack_list' ,
'./public/assets/javascripts/lib/components/tabs' ,
'./public/assets/javascripts/lib/core/ad_manager' ,
'./public/assets/javascripts/lib/core/ad_manager_old' ,
'./public/assets/javascripts/lib/core/base' ,
'./public/assets/javascripts/lib/managers/validation' ,
'./public/assets/javascripts/lib/maps/map_manager'
],
function(){
require(['./public/assets/javascripts/spec/analytics/analytics_spec.js','./public/assets/javascripts/spec/components/accordion_spec.js','./public/assets/javascripts/spec/components/availability_info_spec.js','./public/assets/javascripts/spec/components/availability_search_spec.js','./public/assets/javascripts/spec/components/filter_spec.js','./public/assets/javascripts/spec/components/gallery_spec.js','./public/assets/javascripts/spec/components/group_toggle_spec.js','./public/assets/javascripts/spec/components/load_more_spec.js','./public/assets/javascripts/spec/components/meta_spec.js','./public/assets/javascripts/spec/components/places_list_spec.js','./public/assets/javascripts/spec/components/section_toggle_spec.js','./public/assets/javascripts/spec/components/stack_intro_spec.js','./public/assets/javascripts/spec/components/stack_list_spec.js','./public/assets/javascripts/spec/components/stack_spec.js','./public/assets/javascripts/spec/components/tabs_spec.js','./public/assets/javascripts/spec/core/ad_manager_spec.js','./public/assets/javascripts/spec/core/authenticator_spec.js','./public/assets/javascripts/spec/core/shopping_cart_spec.js','./public/assets/javascripts/spec/extends/controller_spec.js','./public/assets/javascripts/spec/managers/validation_spec.js','./public/assets/javascripts/spec/maps/map_manager_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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment