Skip to content

Commit

Permalink
Added missing test input
Browse files Browse the repository at this point in the history
  • Loading branch information
stesee committed Dec 15, 2020
1 parent 64295de commit 7fddc59
Show file tree
Hide file tree
Showing 2 changed files with 279 additions and 1 deletion.
278 changes: 278 additions & 0 deletions PuppeteerSharp.RendererCliTests/TestInput/BasicTextFormated.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,278 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8" />
<title></title>
<meta name="Generator" content="PowerTools for Open XML" />
<style>span { white-space: pre-wrap; }
p.Codeuctivity-Normal {
text-align: left;
font-family: Liberation Serif;
font-size: 12pt;
line-height: 108%;
margin-top: 0;
margin-left: 0;
margin-right: 0;
margin-bottom: .001pt;
}
span.Codeuctivity-000000 {
color: black;
font-family: Liberation Serif;
font-size: 12pt;
font-style: normal;
font-weight: normal;
margin: 0;
padding: 0;
}
span.Codeuctivity-000001 {
color: black;
font-family: Liberation Serif;
font-size: 12pt;
font-style: normal;
font-weight: bold;
margin: 0;
padding: 0;
}
span.Codeuctivity-000002 {
color: black;
font-family: Liberation Serif;
font-size: 12pt;
font-style: italic;
font-weight: normal;
margin: 0;
padding: 0;
}
span.Codeuctivity-000003 {
color: black;
font-family: Liberation Serif;
font-size: 12pt;
text-decoration: underline;
font-style: normal;
font-weight: normal;
margin: 0;
padding: 0;
}
span.Codeuctivity-000004 {
color: black;
font-family: Liberation Serif;
font-size: 12pt;
font-style: normal;
font-weight: normal;
text-decoration: line-through;
margin: 0;
padding: 0;
}
span.Codeuctivity-000005 {
color: #C9211E;
font-family: Liberation Serif;
font-size: 12pt;
font-style: normal;
font-weight: normal;
margin: 0;
padding: 0;
}
span.Codeuctivity-000006 {
color: black;
background: yellow;
font-family: Liberation Serif;
font-size: 12pt;
font-style: normal;
font-weight: normal;
margin: 0;
padding: 0;
}
p.Codeuctivity-Normal-000007 {
text-align: center;
font-family: Liberation Serif;
font-size: 12pt;
line-height: 108%;
margin-top: 0;
margin-left: 0;
margin-right: 0;
margin-bottom: .001pt;
}
p.Codeuctivity-Normal-000008 {
text-align: right;
font-family: Liberation Serif;
font-size: 12pt;
line-height: 108%;
margin-top: 0;
margin-left: 0;
margin-right: 0;
margin-bottom: .001pt;
}
p.Codeuctivity-Normal-000009 {
text-align: justify;
font-family: Liberation Serif;
font-size: 12pt;
line-height: 108%;
margin-top: 0;
margin-left: 0;
margin-right: 0;
margin-bottom: .001pt;
}
p.Codeuctivity-Normal-000010 {
margin-left: 0.50in;
text-indent: -0.25in;
text-align: left;
font-family: Liberation Serif;
font-size: 12pt;
line-height: 108%;
margin-top: 0;
margin-right: 0;
margin-bottom: .001pt;
}
span.Codeuctivity-000011 {
color: black;
font-family: Symbol;
font-size: 12pt;
font-style: normal;
font-weight: normal;
margin: 0;
padding: 0;
display: inline-block;
text-indent: 0;
width: 0.250in;
}
span.Codeuctivity-000012 {
color: black;
font-family: Liberation Serif;
font-size: 12pt;
font-style: normal;
font-weight: normal;
margin: 0;
padding: 0;
display: inline-block;
text-indent: 0;
width: 0.250in;
}
p.Codeuctivity-Normal-000013 {
margin-left: 0.49in;
text-indent: 0.00in;
text-align: left;
font-family: Liberation Serif;
font-size: 12pt;
line-height: 108%;
margin-top: 0;
margin-right: 0;
margin-bottom: .001pt;
}
p.Codeuctivity-Normal-000014 {
line-height: 200.0%;
text-align: left;
font-family: Liberation Serif;
font-size: 12pt;
margin-top: 0;
margin-left: 0;
margin-right: 0;
margin-bottom: .001pt;
}
p.Codeuctivity-Normal-000015 {
text-align: left;
font-family: Liberation Serif;
font-size: 8pt;
line-height: 108%;
margin-top: 0;
margin-left: 0;
margin-right: 0;
margin-bottom: .001pt;
}
span.Codeuctivity-000016 {
color: black;
font-family: Liberation Serif;
font-size: 8pt;
font-style: normal;
font-weight: normal;
margin: 0;
padding: 0;
}
p.Codeuctivity-Normal-000017 {
text-align: left;
font-family: Liberation Serif;
font-size: 20pt;
line-height: 108%;
margin-top: 0;
margin-left: 0;
margin-right: 0;
margin-bottom: .001pt;
}
span.Codeuctivity-000018 {
color: black;
font-family: Liberation Serif;
font-size: 20pt;
font-style: normal;
font-weight: normal;
margin: 0;
padding: 0;
}
@page { size: A4 } body { margin: 1cm auto; max-width: 20cm; padding: 0; }</style>
</head>
<body>
<div>
<p dir="ltr" class="Codeuctivity-Normal">
<span lang="de-AT" class="Codeuctivity-000000">Lorem Ipsum</span>
</p>
<p dir="ltr" class="Codeuctivity-Normal">
<span lang="de-AT" class="Codeuctivity-000001">Lorem Ipsum</span>
</p>
<p dir="ltr" class="Codeuctivity-Normal">
<span lang="de-AT" class="Codeuctivity-000002">Lorem Ipsum</span>
</p>
<p dir="ltr" class="Codeuctivity-Normal">
<span lang="de-AT" class="Codeuctivity-000003">Lorem Ipsum</span>
</p>
<p dir="ltr" class="Codeuctivity-Normal">
<span lang="de-AT" class="Codeuctivity-000004">Lorem Ipsum</span>
</p>
<p dir="ltr" class="Codeuctivity-Normal">
<span lang="de-AT" class="Codeuctivity-000000">
<sup>Lorem Ipsum</sup>
</span>
</p>
<p dir="ltr" class="Codeuctivity-Normal">
<span lang="de-AT" class="Codeuctivity-000000">
<sub>Lorem Ipsum</sub>
</span>
</p>
<p dir="ltr" class="Codeuctivity-Normal">
<span lang="de-AT" class="Codeuctivity-000005">Lorem Ipsum</span>
</p>
<p dir="ltr" class="Codeuctivity-Normal">
<span lang="de-AT" class="Codeuctivity-000006">Lorem Ipsum</span>
</p>
<p dir="ltr" class="Codeuctivity-Normal-000007">
<span lang="de-AT" class="Codeuctivity-000000">Lorem Ipsum</span>
</p>
<p dir="ltr" class="Codeuctivity-Normal-000008">
<span lang="de-AT" class="Codeuctivity-000000">Lorem Ipsum</span>
</p>
<p dir="ltr" class="Codeuctivity-Normal-000009">
<span lang="de-AT" class="Codeuctivity-000000">Lorem Ipsum</span>
</p>
<p dir="ltr" class="Codeuctivity-Normal-000010">
<span lang="de-AT" class="Codeuctivity-000011"></span>
<span lang="de-AT" class="Codeuctivity-000000">Lorem Ipsum</span>
</p>
<p dir="ltr" class="Codeuctivity-Normal-000010">
<span lang="de-AT" class="Codeuctivity-000012">1.</span>
<span lang="de-AT" class="Codeuctivity-000000">Lorem Ipsum</span>
</p>
<p dir="ltr" class="Codeuctivity-Normal-000013">
<span lang="de-AT" class="Codeuctivity-000000">Lorem Ipsum</span>
</p>
<p dir="ltr" class="Codeuctivity-Normal-000014">
<span lang="de-AT" class="Codeuctivity-000000">Lorem Ipsum</span>
</p>
<p dir="ltr" class="Codeuctivity-Normal-000015">
<span lang="de-AT" class="Codeuctivity-000016">Lorem Ipsum</span>
</p>
<p dir="ltr" class="Codeuctivity-Normal-000017">
<span lang="de-AT" class="Codeuctivity-000018">Lorem Ipsum</span>
</p>
<p dir="ltr" class="Codeuctivity-Normal-000017">
<span lang="de-AT" xml:space="preserve" class="Codeuctivity-000018"> </span>
</p>
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion PuppeteerSharp.RendererCliTests/UnitTest1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public void VersionShouldBeProcessed()
public async Task ConversionShouldWork()
{
var testFileName = "BasicTextFormated.html";
var sourceHtmlFilePath = $"../../../SourceTestFiles/{testFileName}";
var sourceHtmlFilePath = $"../../../TestInput/{testFileName}";
var actualFilePath = Path.Combine(Path.GetTempPath(), $"Actual{testFileName}.pdf");

await Program.Main(new[] { sourceHtmlFilePath, actualFilePath });
Expand Down

0 comments on commit 7fddc59

Please sign in to comment.