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:
parent
420a84464e
commit
2e735b34e0
@ -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 %>">
|
||||
<% }) %>
|
||||
|
@ -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);
|
||||
});
|
||||
|
@ -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">
|
||||
|
||||
|
@ -31,6 +31,7 @@ exports.jasmine = {
|
||||
reporters : ['R1.js'],
|
||||
boot : ['BOOT.js']
|
||||
},
|
||||
temp: 'path/to/temp/folder',
|
||||
options : {}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user