2012-11-29 00:52:22 +08:00
|
|
|
<!doctype html>
|
2012-11-02 13:03:09 +08:00
|
|
|
<html>
|
|
|
|
<head>
|
2012-11-29 00:52:22 +08:00
|
|
|
<meta charset="utf-8">
|
2012-11-02 13:03:09 +08:00
|
|
|
<title>Jasmine Spec Runner</title>
|
|
|
|
<script src="<%= options.requirejs %>"></script>
|
|
|
|
<script>
|
2012-12-03 16:17:06 +08:00
|
|
|
<% if (options.requireConfig) { %>
|
|
|
|
require.config(<%= JSON.stringify(options.requireConfig) %>);
|
|
|
|
<% } %>
|
2012-11-02 13:03:09 +08:00
|
|
|
</script>
|
|
|
|
<% css.forEach(function(style){ %>
|
|
|
|
<link rel="stylesheet" type="text/css" href="<%= style %>">
|
|
|
|
<% }) %>
|
|
|
|
<% with (scripts) { %>
|
2012-12-03 16:17:06 +08:00
|
|
|
<% [].concat(jasmine, vendor, helpers).forEach(function(script){ %>
|
|
|
|
<script src="<%= script %>"></script>
|
|
|
|
<% }) %>
|
2012-11-02 13:03:09 +08:00
|
|
|
<% }; %>
|
|
|
|
<script>
|
|
|
|
require([
|
|
|
|
<% scripts.src.forEach(function(script, i){ %>
|
2012-12-03 16:17:06 +08:00
|
|
|
<% 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 ? ',' : '' %>
|
2012-11-02 13:03:09 +08:00
|
|
|
<% }) %>
|
|
|
|
],
|
|
|
|
function(){
|
|
|
|
require(['<%= [].concat(scripts.specs,scripts.reporters).join("','") %>'], function(){
|
|
|
|
require(['<%= scripts.start.join("','") %>'], function(){
|
2012-12-03 16:17:06 +08:00
|
|
|
// good to go! Our tests should already be running.
|
2012-11-02 13:03:09 +08:00
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
)
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
</body>
|
|
|
|
</html>
|