Merge pull request #138 from stdavis/favicon

Added jasmine favicon to default html runner template.
This commit is contained in:
Vlad Filippov 2014-05-18 14:47:06 -04:00
commit f28ced0bea
4 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,7 @@
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner</title>
<link rel="shortcut icon" type="image/png" href="<%= temp %>/jasmine_favicon.png">
<% css.forEach(function(style){ %>
<link rel="stylesheet" type="text/css" href="<%= style %>">
<% }) %>

View File

@ -53,7 +53,7 @@ exports.init = function(grunt, phantomjs) {
exports.copyTempFile(__dirname + '/../jasmine/reporters/PhantomReporter.js', 'reporter.js');
['jasmine.css', 'jasmine.js', 'jasmine-html.js', 'boot.js'].forEach(function(name){
['jasmine.css', 'jasmine.js', 'jasmine-html.js', 'boot.js', 'jasmine_favicon.png'].forEach(function(name){
var path = __dirname + '/../../vendor/jasmine-' + options.version + '/' + name;
if (fs.existsSync(path)) exports.copyTempFile(path, name);
});

View File

@ -3,6 +3,7 @@
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner</title>
<link rel="shortcut icon" type="image/png" href="path/to/temp/folder/jasmine_favicon.png">
<link rel="stylesheet" type="text/css" href="css/a.css">

View File

@ -31,6 +31,7 @@ exports.jasmine = {
reporters : ['R1.js'],
boot : ['BOOT.js']
},
temp: 'path/to/temp/folder',
options : {}
};