cucumber-html
Advanced tools
Comparing version 0.2.3 to 0.2.4
{ | ||
"author": "Aslak Hellesøy <aslak.hellesoy@gmail.com>", | ||
"license": "MIT", | ||
"contributors": ["Cédric Lamalle <cedric.lamalle@gmail.com>", "Julien Biezemans <jb@jbpros.com>"], | ||
"name": "cucumber-html", | ||
"description": "Cross platform HTML formatter for all implementations of Cucumber", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"homepage": "https://github.com/cucumber/cucumber-html", | ||
@@ -8,0 +9,0 @@ "repository": { |
@@ -97,11 +97,11 @@ var CucumberHTML = {}; | ||
this.embedding = function(mimeType, data) { | ||
if (mimeType.match(/^image\//)) | ||
if (mimeType.match(/^image\//)) | ||
{ | ||
currentStep.append('<img src="' + data + '">'); | ||
} | ||
else if (mimeType.match(/^video\//)) | ||
else if (mimeType.match(/^video\//)) | ||
{ | ||
currentStep.append('<video src="' + data + '" type="' + mimeType + '" autobuffer controls>Your browser doesn\'t support video.</video>'); | ||
} | ||
else if (mimeType.match(/^text\//)) | ||
else if (mimeType.match(/^text\//)) | ||
{ | ||
@@ -199,3 +199,3 @@ this.write(data); | ||
<ol>\ | ||
<li class="step"><span class="keyword" itemprop="keyword">Keyword</span><span class="name" itemprop="name">Name</span></li>\ | ||
<li class="step"><div class="header"></div><span class="keyword" itemprop="keyword">Keyword</span><span class="name" itemprop="name">Name</span></li>\ | ||
</ol>\ | ||
@@ -202,0 +202,0 @@ \ |
{ | ||
"author": "Aslak Hellesøy <aslak.hellesoy@gmail.com>", | ||
"license": "MIT", | ||
"contributors": ["Cédric Lamalle <cedric.lamalle@gmail.com>", "Julien Biezemans <jb@jbpros.com>"], | ||
"name": "cucumber-html", | ||
"description": "Cross platform HTML formatter for all implementations of Cucumber", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"homepage": "https://github.com/cucumber/cucumber-html", | ||
@@ -8,0 +9,0 @@ "repository": { |
@@ -97,11 +97,11 @@ var CucumberHTML = {}; | ||
this.embedding = function(mimeType, data) { | ||
if (mimeType.match(/^image\//)) | ||
if (mimeType.match(/^image\//)) | ||
{ | ||
currentStep.append('<img src="' + data + '">'); | ||
} | ||
else if (mimeType.match(/^video\//)) | ||
else if (mimeType.match(/^video\//)) | ||
{ | ||
currentStep.append('<video src="' + data + '" type="' + mimeType + '" autobuffer controls>Your browser doesn\'t support video.</video>'); | ||
} | ||
else if (mimeType.match(/^text\//)) | ||
else if (mimeType.match(/^text\//)) | ||
{ | ||
@@ -199,3 +199,3 @@ this.write(data); | ||
<ol>\ | ||
<li class="step"><span class="keyword" itemprop="keyword">Keyword</span><span class="name" itemprop="name">Name</span></li>\ | ||
<li class="step"><div class="header"></div><span class="keyword" itemprop="keyword">Keyword</span><span class="name" itemprop="name">Name</span></li>\ | ||
</ol>\ | ||
@@ -202,0 +202,0 @@ \ |
@@ -97,11 +97,11 @@ var CucumberHTML = {}; | ||
this.embedding = function(mimeType, data) { | ||
if (mimeType.match(/^image\//)) | ||
if (mimeType.match(/^image\//)) | ||
{ | ||
currentStep.append('<img src="' + data + '">'); | ||
} | ||
else if (mimeType.match(/^video\//)) | ||
else if (mimeType.match(/^video\//)) | ||
{ | ||
currentStep.append('<video src="' + data + '" type="' + mimeType + '" autobuffer controls>Your browser doesn\'t support video.</video>'); | ||
} | ||
else if (mimeType.match(/^text\//)) | ||
else if (mimeType.match(/^text\//)) | ||
{ | ||
@@ -199,3 +199,3 @@ this.write(data); | ||
<ol>\ | ||
<li class="step"><span class="keyword" itemprop="keyword">Keyword</span><span class="name" itemprop="name">Name</span></li>\ | ||
<li class="step"><div class="header"></div><span class="keyword" itemprop="keyword">Keyword</span><span class="name" itemprop="name">Name</span></li>\ | ||
</ol>\ | ||
@@ -202,0 +202,0 @@ \ |
@@ -36,3 +36,6 @@ $(document).ready(function() { | ||
formatter.scenario({"tags":[{"name":"@foo","line":3},{"name":"@bar","line":4},{"name":"@doh","line":5}], keyword:'Scenario', name: 'Creating a simple report', line: 6}); | ||
formatter.step({keyword:'Given ', name:'I have a feature', line: 7, doc_string:{value: "A\ndoc string\non several lines", content_type:"text/plain", line:8}}); | ||
formatter.step({comments: [ | ||
{value: "# Step comment 1"}, | ||
{value: "# Step comment 2"} | ||
],keyword:'Given ', name:'I have a feature', line: 7, doc_string:{value: "A\ndoc string\non several lines", content_type:"text/plain", line:8}}); | ||
formatter.step({keyword:'When ', name:'I format it', line: 11}); | ||
@@ -69,2 +72,2 @@ formatter.step({keyword:'Then ', name:'It should look pretty', line: 12}); | ||
}); | ||
}); |
@@ -97,11 +97,11 @@ var CucumberHTML = {}; | ||
this.embedding = function(mimeType, data) { | ||
if (mimeType.match(/^image\//)) | ||
if (mimeType.match(/^image\//)) | ||
{ | ||
currentStep.append('<img src="' + data + '">'); | ||
} | ||
else if (mimeType.match(/^video\//)) | ||
else if (mimeType.match(/^video\//)) | ||
{ | ||
currentStep.append('<video src="' + data + '" type="' + mimeType + '" autobuffer controls>Your browser doesn\'t support video.</video>'); | ||
} | ||
else if (mimeType.match(/^text\//)) | ||
else if (mimeType.match(/^text\//)) | ||
{ | ||
@@ -199,3 +199,3 @@ this.write(data); | ||
<ol>\ | ||
<li class="step"><span class="keyword" itemprop="keyword">Keyword</span><span class="name" itemprop="name">Name</span></li>\ | ||
<li class="step"><div class="header"></div><span class="keyword" itemprop="keyword">Keyword</span><span class="name" itemprop="name">Name</span></li>\ | ||
</ol>\ | ||
@@ -202,0 +202,0 @@ \ |
@@ -36,3 +36,6 @@ $(document).ready(function() { | ||
formatter.scenario({"tags":[{"name":"@foo","line":3},{"name":"@bar","line":4},{"name":"@doh","line":5}], keyword:'Scenario', name: 'Creating a simple report', line: 6}); | ||
formatter.step({keyword:'Given ', name:'I have a feature', line: 7, doc_string:{value: "A\ndoc string\non several lines", content_type:"text/plain", line:8}}); | ||
formatter.step({comments: [ | ||
{value: "# Step comment 1"}, | ||
{value: "# Step comment 2"} | ||
],keyword:'Given ', name:'I have a feature', line: 7, doc_string:{value: "A\ndoc string\non several lines", content_type:"text/plain", line:8}}); | ||
formatter.step({keyword:'When ', name:'I format it', line: 11}); | ||
@@ -69,2 +72,2 @@ formatter.step({keyword:'Then ', name:'It should look pretty', line: 12}); | ||
}); | ||
}); |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
663263
50
0
1248
0