5 <title>Jasmine Spec Runner</title>
7 <!-- generate script tags for tests -->
8 <% var generateScriptTags = function(allScripts) { allScripts.forEach(function(script){ %>
9 <script src="<%= script %>"></script>
12 <!-- for each test, generate CSS/LESS link tags -->
13 <% scripts.src.forEach(function(fullLessName) {
14 var pathParts = fullLessName.split('/');
15 var fullCssName = fullLessName.replace(/less/g, 'css');
16 var lessName = pathParts[pathParts.length - 1];
17 var name = lessName.split('.')[0]; %>
18 <!-- the tags to be generated -->
19 <link id="original-less:test-less-<%= name %>" title="test-less-<%= name %>" rel="stylesheet/less" type="text/css" href="<%= fullLessName %>">
20 <link id="expected-less:test-less-<%= name %>" rel="stylesheet" type="text/css" href="<%= fullCssName %>">
23 <!-- generate grunt-contrib-jasmine link tags -->
24 <% css.forEach(function(style){ %>
25 <link rel="stylesheet" type="text/css" href="<%= style %>">
28 <!-- inital grunt-contrib-jasmine scripts -->
29 <% generateScriptTags([].concat(scripts.polyfills, scripts.jasmine)); %>
31 <!-- Helpers - The less options -->
32 <% generateScriptTags(scripts.helpers); %>
34 <!-- Vendor - less.js and common code -->
35 <% generateScriptTags(scripts.vendor); %>
38 <% generateScriptTags(scripts.specs); %>
40 <!-- final grunt-contrib-jasmine scripts -->
41 <% generateScriptTags([].concat(scripts.reporters, scripts.start)); %>