Comparing version 0.1.3 to 0.1.4
@@ -141,2 +141,6 @@ /* | ||
function title(str) { | ||
return ' title="' + str + '" '; | ||
} | ||
function annotateLines(fileCoverage, structuredText) { | ||
@@ -167,3 +171,3 @@ var lineStats = fileCoverage.l; | ||
endLine = meta.end.line, | ||
openSpan = lt + 'span class="cstat-' + type + '"' + gt, | ||
openSpan = lt + 'span class="cstat-no"' + title('statement not covered') + gt, | ||
closeSpan = lt + '/span' + gt, | ||
@@ -199,3 +203,3 @@ text; | ||
endLine = meta.loc.end.line, | ||
openSpan = lt + 'span class="fstat-' + type + '"' + gt, | ||
openSpan = lt + 'span class="fstat-no"' + title('function not covered') + gt, | ||
closeSpan = lt + '/span' + gt, | ||
@@ -248,3 +252,3 @@ text; | ||
endLine = meta.end.line; | ||
openSpan = lt + 'span class="branch-' + i + ' cbranch-' + type + '"' + gt; | ||
openSpan = lt + 'span class="branch-' + i + ' cbranch-no"' + title('branch not covered') + gt; | ||
closeSpan = lt + '/span' + gt; | ||
@@ -259,3 +263,5 @@ | ||
if (branchMeta[branchName].type === 'if') { // and 'if' is a special case since the else branch might not be visible, being non-existent | ||
text.insertAt(startCol, lt + 'span class="missing-if-branch"' + gt + (i === 0 ? 'I' : 'E') + lt + '/span' + gt, true, false); | ||
text.insertAt(startCol, lt + 'span class="missing-if-branch"' + | ||
title((i === 0 ? 'if' : 'else') + ' path not taken"') + gt + | ||
(i === 0 ? 'I' : 'E') + lt + '/span' + gt, true, false); | ||
} else { | ||
@@ -262,0 +268,0 @@ text.wrap(startCol, |
@@ -102,3 +102,2 @@ <!doctype html> | ||
margin-right: 10px; | ||
margin-left: -30px; | ||
position: relative; | ||
@@ -105,0 +104,0 @@ padding: 0 4px; |
{ | ||
"name": "istanbul", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale", | ||
@@ -5,0 +5,0 @@ "keywords": "coverage,code coverage, JS code coverage, JS coverage", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6982
442464