Merge pull request #138 from stdavis/favicon
Added jasmine favicon to default html runner template.
This commit is contained in:
commit
f28ced0bea
@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Jasmine Spec Runner</title>
|
<title>Jasmine Spec Runner</title>
|
||||||
|
<link rel="shortcut icon" type="image/png" href="<%= temp %>/jasmine_favicon.png">
|
||||||
<% css.forEach(function(style){ %>
|
<% css.forEach(function(style){ %>
|
||||||
<link rel="stylesheet" type="text/css" href="<%= 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');
|
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;
|
var path = __dirname + '/../../vendor/jasmine-' + options.version + '/' + name;
|
||||||
if (fs.existsSync(path)) exports.copyTempFile(path, name);
|
if (fs.existsSync(path)) exports.copyTempFile(path, name);
|
||||||
});
|
});
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Jasmine Spec Runner</title>
|
<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">
|
<link rel="stylesheet" type="text/css" href="css/a.css">
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ exports.jasmine = {
|
|||||||
reporters : ['R1.js'],
|
reporters : ['R1.js'],
|
||||||
boot : ['BOOT.js']
|
boot : ['BOOT.js']
|
||||||
},
|
},
|
||||||
|
temp: 'path/to/temp/folder',
|
||||||
options : {}
|
options : {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user