41 lines
1.3 KiB
Cheetah
41 lines
1.3 KiB
Cheetah
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Jasmine Spec Runner</title>
|
|
<script src="<%= options.requirejs %>"></script>
|
|
<script>
|
|
<% if (options.requireConfig) { %>
|
|
require.config(<%= JSON.stringify(options.requireConfig) %>);
|
|
<% } %>
|
|
</script>
|
|
<% css.forEach(function(style){ %>
|
|
<link rel="stylesheet" type="text/css" href="<%= style %>">
|
|
<% }) %>
|
|
<% with (scripts) { %>
|
|
<% [].concat(jasmine, vendor, helpers).forEach(function(script){ %>
|
|
<script src="<%= script %>"></script>
|
|
<% }) %>
|
|
<% }; %>
|
|
<script>
|
|
require([
|
|
<% scripts.src.forEach(function(script, i){ %>
|
|
<% if (options.requireConfig && options.requireConfig.baseUrl) script = script.replace(new RegExp('^' + options.requireConfig.baseUrl),""); %>
|
|
<% if (options.loaderPlugin) script = options.loaderPlugin + '!' + script %>
|
|
'<%= script.replace(/\.js$/,"") %>' <%= i < scripts.src.length-1 ? ',' : '' %>
|
|
<% }) %>
|
|
],
|
|
function(){
|
|
require(['<%= [].concat(scripts.specs,scripts.reporters).join("','") %>'], function(){
|
|
require(['<%= scripts.start.join("','") %>'], function(){
|
|
// good to go! Our tests should already be running.
|
|
})
|
|
})
|
|
}
|
|
)
|
|
</script>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|