Added jasmine favicon to default html runner template.

This will allow this project to be used with the [jasmine-favicon-reporter](https://github.com/simsalabim/jasmine-favicon-reporter) project as well as make the spec runner look a bit nicer.
This commit is contained in:
Scott Davis 2014-04-11 14:55:18 -06:00
parent 420a84464e
commit 2e735b34e0
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 : {}
};