mirror of
https://github.com/less/less.js.git
synced 2026-02-09 14:35:44 -05:00
42 lines
1.4 KiB
Cheetah
42 lines
1.4 KiB
Cheetah
<!doctype html>
|
|
<%
|
|
var generateScriptsTasgs = function(allScripts) {
|
|
allScripts.forEach(function(script){ %> <script src="<%= script %>"></script>
|
|
<% });
|
|
};
|
|
%>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Jasmine Spec Runner</title>
|
|
|
|
<!-- less and css links -->
|
|
<%
|
|
scripts.src.forEach(function(fullLessName) {
|
|
var pathParts = fullLessName.split('/'),
|
|
fullCssName = fullLessName.replace(/less/g, 'css'),
|
|
lessName = pathParts[pathParts.length-1],
|
|
name = lessName.split('.')[0];
|
|
%>
|
|
<link id="original-less:test-less-<%=name%>" rel="stylesheet/less" type="text/css" href="<%=fullLessName%>">
|
|
<link id="expected-less:test-less-<%=name%>" rel="stylesheet" type="text/css" href="<%=fullCssName%>"><%
|
|
});
|
|
%>
|
|
|
|
<!-- grunt-contrib-jasmine css -->
|
|
<% css.forEach(function(style){ %>
|
|
<link rel="stylesheet" type="text/css" href="<%= style %>">
|
|
<% }) %>
|
|
<!-- inital grunt-contrib-jasmine scripts -->
|
|
<% generateScriptsTasgs([].concat(scripts.polyfills, scripts.jasmine)); %>
|
|
<!-- less.js testing -->
|
|
<% generateScriptsTasgs(scripts.vendor);
|
|
%> <script>var less = { async: false, strictMath: true };</script><script src="less.js"></script>
|
|
<% generateScriptsTasgs([].concat(scripts.helpers, scripts.specs)); %>
|
|
<!-- final grunt-contrib-jasmine scripts -->
|
|
<% generateScriptsTasgs([].concat(scripts.reporters, scripts.start)); %>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|