Skip to content

Commit 7fddc59

Browse files
committed
Added missing test input
1 parent 64295de commit 7fddc59

File tree

2 files changed

+279
-1
lines changed

2 files changed

+279
-1
lines changed
Lines changed: 278 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,278 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE html >
3+
<html xmlns="http://www.w3.org/1999/xhtml">
4+
<head>
5+
<meta charset="UTF-8" />
6+
<title></title>
7+
<meta name="Generator" content="PowerTools for Open XML" />
8+
<style>span { white-space: pre-wrap; }
9+
p.Codeuctivity-Normal {
10+
text-align: left;
11+
font-family: Liberation Serif;
12+
font-size: 12pt;
13+
line-height: 108%;
14+
margin-top: 0;
15+
margin-left: 0;
16+
margin-right: 0;
17+
margin-bottom: .001pt;
18+
}
19+
span.Codeuctivity-000000 {
20+
color: black;
21+
font-family: Liberation Serif;
22+
font-size: 12pt;
23+
font-style: normal;
24+
font-weight: normal;
25+
margin: 0;
26+
padding: 0;
27+
}
28+
span.Codeuctivity-000001 {
29+
color: black;
30+
font-family: Liberation Serif;
31+
font-size: 12pt;
32+
font-style: normal;
33+
font-weight: bold;
34+
margin: 0;
35+
padding: 0;
36+
}
37+
span.Codeuctivity-000002 {
38+
color: black;
39+
font-family: Liberation Serif;
40+
font-size: 12pt;
41+
font-style: italic;
42+
font-weight: normal;
43+
margin: 0;
44+
padding: 0;
45+
}
46+
span.Codeuctivity-000003 {
47+
color: black;
48+
font-family: Liberation Serif;
49+
font-size: 12pt;
50+
text-decoration: underline;
51+
font-style: normal;
52+
font-weight: normal;
53+
margin: 0;
54+
padding: 0;
55+
}
56+
span.Codeuctivity-000004 {
57+
color: black;
58+
font-family: Liberation Serif;
59+
font-size: 12pt;
60+
font-style: normal;
61+
font-weight: normal;
62+
text-decoration: line-through;
63+
margin: 0;
64+
padding: 0;
65+
}
66+
span.Codeuctivity-000005 {
67+
color: #C9211E;
68+
font-family: Liberation Serif;
69+
font-size: 12pt;
70+
font-style: normal;
71+
font-weight: normal;
72+
margin: 0;
73+
padding: 0;
74+
}
75+
span.Codeuctivity-000006 {
76+
color: black;
77+
background: yellow;
78+
font-family: Liberation Serif;
79+
font-size: 12pt;
80+
font-style: normal;
81+
font-weight: normal;
82+
margin: 0;
83+
padding: 0;
84+
}
85+
p.Codeuctivity-Normal-000007 {
86+
text-align: center;
87+
font-family: Liberation Serif;
88+
font-size: 12pt;
89+
line-height: 108%;
90+
margin-top: 0;
91+
margin-left: 0;
92+
margin-right: 0;
93+
margin-bottom: .001pt;
94+
}
95+
p.Codeuctivity-Normal-000008 {
96+
text-align: right;
97+
font-family: Liberation Serif;
98+
font-size: 12pt;
99+
line-height: 108%;
100+
margin-top: 0;
101+
margin-left: 0;
102+
margin-right: 0;
103+
margin-bottom: .001pt;
104+
}
105+
p.Codeuctivity-Normal-000009 {
106+
text-align: justify;
107+
font-family: Liberation Serif;
108+
font-size: 12pt;
109+
line-height: 108%;
110+
margin-top: 0;
111+
margin-left: 0;
112+
margin-right: 0;
113+
margin-bottom: .001pt;
114+
}
115+
p.Codeuctivity-Normal-000010 {
116+
margin-left: 0.50in;
117+
text-indent: -0.25in;
118+
text-align: left;
119+
font-family: Liberation Serif;
120+
font-size: 12pt;
121+
line-height: 108%;
122+
margin-top: 0;
123+
margin-right: 0;
124+
margin-bottom: .001pt;
125+
}
126+
span.Codeuctivity-000011 {
127+
color: black;
128+
font-family: Symbol;
129+
font-size: 12pt;
130+
font-style: normal;
131+
font-weight: normal;
132+
margin: 0;
133+
padding: 0;
134+
display: inline-block;
135+
text-indent: 0;
136+
width: 0.250in;
137+
}
138+
span.Codeuctivity-000012 {
139+
color: black;
140+
font-family: Liberation Serif;
141+
font-size: 12pt;
142+
font-style: normal;
143+
font-weight: normal;
144+
margin: 0;
145+
padding: 0;
146+
display: inline-block;
147+
text-indent: 0;
148+
width: 0.250in;
149+
}
150+
p.Codeuctivity-Normal-000013 {
151+
margin-left: 0.49in;
152+
text-indent: 0.00in;
153+
text-align: left;
154+
font-family: Liberation Serif;
155+
font-size: 12pt;
156+
line-height: 108%;
157+
margin-top: 0;
158+
margin-right: 0;
159+
margin-bottom: .001pt;
160+
}
161+
p.Codeuctivity-Normal-000014 {
162+
line-height: 200.0%;
163+
text-align: left;
164+
font-family: Liberation Serif;
165+
font-size: 12pt;
166+
margin-top: 0;
167+
margin-left: 0;
168+
margin-right: 0;
169+
margin-bottom: .001pt;
170+
}
171+
p.Codeuctivity-Normal-000015 {
172+
text-align: left;
173+
font-family: Liberation Serif;
174+
font-size: 8pt;
175+
line-height: 108%;
176+
margin-top: 0;
177+
margin-left: 0;
178+
margin-right: 0;
179+
margin-bottom: .001pt;
180+
}
181+
span.Codeuctivity-000016 {
182+
color: black;
183+
font-family: Liberation Serif;
184+
font-size: 8pt;
185+
font-style: normal;
186+
font-weight: normal;
187+
margin: 0;
188+
padding: 0;
189+
}
190+
p.Codeuctivity-Normal-000017 {
191+
text-align: left;
192+
font-family: Liberation Serif;
193+
font-size: 20pt;
194+
line-height: 108%;
195+
margin-top: 0;
196+
margin-left: 0;
197+
margin-right: 0;
198+
margin-bottom: .001pt;
199+
}
200+
span.Codeuctivity-000018 {
201+
color: black;
202+
font-family: Liberation Serif;
203+
font-size: 20pt;
204+
font-style: normal;
205+
font-weight: normal;
206+
margin: 0;
207+
padding: 0;
208+
}
209+
@page { size: A4 } body { margin: 1cm auto; max-width: 20cm; padding: 0; }</style>
210+
</head>
211+
<body>
212+
<div>
213+
<p dir="ltr" class="Codeuctivity-Normal">
214+
<span lang="de-AT" class="Codeuctivity-000000">Lorem Ipsum</span>
215+
</p>
216+
<p dir="ltr" class="Codeuctivity-Normal">
217+
<span lang="de-AT" class="Codeuctivity-000001">Lorem Ipsum</span>
218+
</p>
219+
<p dir="ltr" class="Codeuctivity-Normal">
220+
<span lang="de-AT" class="Codeuctivity-000002">Lorem Ipsum</span>
221+
</p>
222+
<p dir="ltr" class="Codeuctivity-Normal">
223+
<span lang="de-AT" class="Codeuctivity-000003">Lorem Ipsum</span>
224+
</p>
225+
<p dir="ltr" class="Codeuctivity-Normal">
226+
<span lang="de-AT" class="Codeuctivity-000004">Lorem Ipsum</span>
227+
</p>
228+
<p dir="ltr" class="Codeuctivity-Normal">
229+
<span lang="de-AT" class="Codeuctivity-000000">
230+
<sup>Lorem Ipsum</sup>
231+
</span>
232+
</p>
233+
<p dir="ltr" class="Codeuctivity-Normal">
234+
<span lang="de-AT" class="Codeuctivity-000000">
235+
<sub>Lorem Ipsum</sub>
236+
</span>
237+
</p>
238+
<p dir="ltr" class="Codeuctivity-Normal">
239+
<span lang="de-AT" class="Codeuctivity-000005">Lorem Ipsum</span>
240+
</p>
241+
<p dir="ltr" class="Codeuctivity-Normal">
242+
<span lang="de-AT" class="Codeuctivity-000006">Lorem Ipsum</span>
243+
</p>
244+
<p dir="ltr" class="Codeuctivity-Normal-000007">
245+
<span lang="de-AT" class="Codeuctivity-000000">Lorem Ipsum</span>
246+
</p>
247+
<p dir="ltr" class="Codeuctivity-Normal-000008">
248+
<span lang="de-AT" class="Codeuctivity-000000">Lorem Ipsum</span>
249+
</p>
250+
<p dir="ltr" class="Codeuctivity-Normal-000009">
251+
<span lang="de-AT" class="Codeuctivity-000000">Lorem Ipsum</span>
252+
</p>
253+
<p dir="ltr" class="Codeuctivity-Normal-000010">
254+
<span lang="de-AT" class="Codeuctivity-000011"></span>
255+
<span lang="de-AT" class="Codeuctivity-000000">Lorem Ipsum</span>
256+
</p>
257+
<p dir="ltr" class="Codeuctivity-Normal-000010">
258+
<span lang="de-AT" class="Codeuctivity-000012">1.</span>
259+
<span lang="de-AT" class="Codeuctivity-000000">Lorem Ipsum</span>
260+
</p>
261+
<p dir="ltr" class="Codeuctivity-Normal-000013">
262+
<span lang="de-AT" class="Codeuctivity-000000">Lorem Ipsum</span>
263+
</p>
264+
<p dir="ltr" class="Codeuctivity-Normal-000014">
265+
<span lang="de-AT" class="Codeuctivity-000000">Lorem Ipsum</span>
266+
</p>
267+
<p dir="ltr" class="Codeuctivity-Normal-000015">
268+
<span lang="de-AT" class="Codeuctivity-000016">Lorem Ipsum</span>
269+
</p>
270+
<p dir="ltr" class="Codeuctivity-Normal-000017">
271+
<span lang="de-AT" class="Codeuctivity-000018">Lorem Ipsum</span>
272+
</p>
273+
<p dir="ltr" class="Codeuctivity-Normal-000017">
274+
<span lang="de-AT" xml:space="preserve" class="Codeuctivity-000018"> </span>
275+
</p>
276+
</div>
277+
</body>
278+
</html>

PuppeteerSharp.RendererCliTests/UnitTest1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public void VersionShouldBeProcessed()
1818
public async Task ConversionShouldWork()
1919
{
2020
var testFileName = "BasicTextFormated.html";
21-
var sourceHtmlFilePath = $"../../../SourceTestFiles/{testFileName}";
21+
var sourceHtmlFilePath = $"../../../TestInput/{testFileName}";
2222
var actualFilePath = Path.Combine(Path.GetTempPath(), $"Actual{testFileName}.pdf");
2323

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

0 commit comments

Comments
 (0)