Skip to content

Commit

Permalink
test: Add test for ul with empty bullets
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Jul 12, 2024
1 parent fe874cf commit fe595b1
Show file tree
Hide file tree
Showing 7 changed files with 145 additions and 74 deletions.
20 changes: 20 additions & 0 deletions tests/input/elements.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1336,6 +1336,26 @@ for opt, value in opts:
</artwork>
<t><xref target="GEDICHTE" format="title"/></t>
</li>
<li>
<t>ul with no bullets</t>
<ul empty="true">
<li>
<ul>
<li>Must not have an empty line with bullet above this line.</li>
</ul>
</li>
</ul>
</li>
<li>
<t>ul with bullets</t>
<ul>
<li>
<ul>
<li>Must have an empty line with bullet above this line.</li>
</ul>
</li>
</ul>
</li>
</ul>
</section>
</middle>
Expand Down
48 changes: 24 additions & 24 deletions tests/valid/elements.bom.text
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ Table of Contents
Unnumbered section . . . . . . . . . . . . . . . . . . . . . . . 23
References . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Normative References . . . . . . . . . . . . . . . . . . . . . 24
Informative References . . . . . . . . . . . . . . . . . . . . 24
CMS References . . . . . . . . . . . . . . . . . . . . . . . 24
Informative References . . . . . . . . . . . . . . . . . . . . 25
CMS References . . . . . . . . . . . . . . . . . . . . . . . 25
ESS References . . . . . . . . . . . . . . . . . . . . . . . 25
MIME-SPEC References . . . . . . . . . . . . . . . . . . . . 25
Other References . . . . . . . . . . . . . . . . . . . . . . 26
Expand Down Expand Up @@ -1312,6 +1312,15 @@ Internet-Draft Xml2rfc Vocabulary V3 Elements July 2018

Dreiunddreißig Gedichte

* ul with no bullets

o Must not have an empty line with bullet above this line.

* ul with bullets

-
o Must have an empty line with bullet above this line.

References

Normative References
Expand All @@ -1329,15 +1338,6 @@ Normative References
2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
May 2017, <https://www.rfc-editor.org/info/rfc8174>.

Informative References

CMS References









Expand All @@ -1346,6 +1346,10 @@ Author, et al. Expires 13 January 2019 [Page 24]
Internet-Draft Xml2rfc Vocabulary V3 Elements July 2018


Informative References

CMS References

[I-D.levkowetz-xml2rfc-v3-implementation-notes]
Levkowetz, H., "Implementation notes for RFC7991,", Work
in Progress, Internet-Draft, draft-levkowetz-xml2rfc-v3-
Expand Down Expand Up @@ -1390,10 +1394,6 @@ MIME-SPEC References
RFC 2047, DOI 10.17487/RFC2047, November 1996,
<https://www.rfc-editor.org/info/rfc2047>.

[RFC2049] Freed, N. and N. Borenstein, "Multipurpose Internet Mail
Extensions (MIME) Part Five: Conformance Criteria and
Examples", RFC 2049, DOI 10.17487/RFC2049, November 1996,
<https://www.rfc-editor.org/info/rfc2049>.



Expand All @@ -1402,6 +1402,11 @@ Author, et al. Expires 13 January 2019 [Page 25]
Internet-Draft Xml2rfc Vocabulary V3 Elements July 2018


[RFC2049] Freed, N. and N. Borenstein, "Multipurpose Internet Mail
Extensions (MIME) Part Five: Conformance Criteria and
Examples", RFC 2049, DOI 10.17487/RFC2049, November 1996,
<https://www.rfc-editor.org/info/rfc2049>.

[RFC4289] Freed, N. and J. Klensin, "Multipurpose Internet Mail
Extensions (MIME) Part Four: Registration Procedures",
BCP 13, RFC 4289, DOI 10.17487/RFC4289, December 2005,
Expand Down Expand Up @@ -1445,11 +1450,6 @@ Appendix A. Some Back Matter
ut sapien venenatis maximus. Morbi ut faucibus nunc, vitae pretium
lorem. Aliquam sit amet tortor ut turpis dapibus ullamcorper. Proin
at ligula nec magna molestie eleifend:
トヨタ 自動車 株式会社 (Toyota Jidōsha KK).
// This is a long comment line which extends well beyond the
// 72-character page width.





Expand All @@ -1458,6 +1458,10 @@ Author, et al. Expires 13 January 2019 [Page 26]
Internet-Draft Xml2rfc Vocabulary V3 Elements July 2018


トヨタ 自動車 株式会社 (Toyota Jidōsha KK).
// This is a long comment line which extends well beyond the
// 72-character page width.

A.1. Contributors

We'd like to thank these contributors:
Expand Down Expand Up @@ -1505,10 +1509,6 @@ Authors' Addresses







Author, et al. Expires 13 January 2019 [Page 27]

Internet-Draft Xml2rfc Vocabulary V3 Elements July 2018
Expand Down
48 changes: 24 additions & 24 deletions tests/valid/elements.pages.text
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ Table of Contents
Unnumbered section . . . . . . . . . . . . . . . . . . . . . . . 23
References . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Normative References . . . . . . . . . . . . . . . . . . . . . 24
Informative References . . . . . . . . . . . . . . . . . . . . 24
CMS References . . . . . . . . . . . . . . . . . . . . . . . 24
Informative References . . . . . . . . . . . . . . . . . . . . 25
CMS References . . . . . . . . . . . . . . . . . . . . . . . 25
ESS References . . . . . . . . . . . . . . . . . . . . . . . 25
MIME-SPEC References . . . . . . . . . . . . . . . . . . . . 25
Other References . . . . . . . . . . . . . . . . . . . . . . 26
Expand Down Expand Up @@ -1312,6 +1312,15 @@ Internet-Draft Xml2rfc Vocabulary V3 Elements July 2018

Dreiunddreißig Gedichte

* ul with no bullets

o Must not have an empty line with bullet above this line.

* ul with bullets

-
o Must have an empty line with bullet above this line.

References

Normative References
Expand All @@ -1329,15 +1338,6 @@ Normative References
2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
May 2017, <https://www.rfc-editor.org/info/rfc8174>.

Informative References

CMS References









Expand All @@ -1346,6 +1346,10 @@ Author, et al. Expires January 13, 2019 [Page 24]
Internet-Draft Xml2rfc Vocabulary V3 Elements July 2018


Informative References

CMS References

[I-D.levkowetz-xml2rfc-v3-implementation-notes]
Levkowetz, H., "Implementation notes for RFC7991,", Work
in Progress, Internet-Draft, draft-levkowetz-xml2rfc-v3-
Expand Down Expand Up @@ -1390,10 +1394,6 @@ MIME-SPEC References
RFC 2047, DOI 10.17487/RFC2047, November 1996,
<https://www.rfc-editor.org/info/rfc2047>.

[RFC2049] Freed, N. and N. Borenstein, "Multipurpose Internet Mail
Extensions (MIME) Part Five: Conformance Criteria and
Examples", RFC 2049, DOI 10.17487/RFC2049, November 1996,
<https://www.rfc-editor.org/info/rfc2049>.



Expand All @@ -1402,6 +1402,11 @@ Author, et al. Expires January 13, 2019 [Page 25]
Internet-Draft Xml2rfc Vocabulary V3 Elements July 2018


[RFC2049] Freed, N. and N. Borenstein, "Multipurpose Internet Mail
Extensions (MIME) Part Five: Conformance Criteria and
Examples", RFC 2049, DOI 10.17487/RFC2049, November 1996,
<https://www.rfc-editor.org/info/rfc2049>.

[RFC4289] Freed, N. and J. Klensin, "Multipurpose Internet Mail
Extensions (MIME) Part Four: Registration Procedures",
BCP 13, RFC 4289, DOI 10.17487/RFC4289, December 2005,
Expand Down Expand Up @@ -1445,11 +1450,6 @@ Appendix A. Some Back Matter
ut sapien venenatis maximus. Morbi ut faucibus nunc, vitae pretium
lorem. Aliquam sit amet tortor ut turpis dapibus ullamcorper. Proin
at ligula nec magna molestie eleifend:
トヨタ 自動車 株式会社 (Toyota Jidōsha KK).
// This is a long comment line which extends well beyond the
// 72-character page width.





Expand All @@ -1458,6 +1458,10 @@ Author, et al. Expires January 13, 2019 [Page 26]
Internet-Draft Xml2rfc Vocabulary V3 Elements July 2018


トヨタ 自動車 株式会社 (Toyota Jidōsha KK).
// This is a long comment line which extends well beyond the
// 72-character page width.

A.1. Contributors

We'd like to thank these contributors:
Expand Down Expand Up @@ -1505,10 +1509,6 @@ Authors' Addresses







Author, et al. Expires January 13, 2019 [Page 27]

Internet-Draft Xml2rfc Vocabulary V3 Elements July 2018
Expand Down
22 changes: 21 additions & 1 deletion tests/valid/elements.prepped.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" submissionType="independent" ipr="trust200902" docName="elements-00" category="info" obsoletes="1234,5678,9012,3456,7890" sortRefs="true" indexInclude="false" prepTime="2023-09-27T20:11:31" scripts="Cherokee,Common,Greek,Han,Hebrew,Latin" symRefs="true" tocDepth="3" tocInclude="true">
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" submissionType="independent" ipr="trust200902" docName="elements-00" category="info" obsoletes="1234,5678,9012,3456,7890" sortRefs="true" indexInclude="false" prepTime="2024-07-12T07:39:59" scripts="Cherokee,Common,Greek,Han,Hebrew,Latin" symRefs="true" tocDepth="3" tocInclude="true">



Expand Down Expand Up @@ -1558,6 +1558,26 @@ for opt, value in opts:
</artwork>
<t indent="0" pn="section-17-4.2.2"><xref target="GEDICHTE" format="title" sectionFormat="of" derivedContent="Dreiunddreißig Gedichte"/></t>
</li>
<li pn="section-17-4.3">
<t indent="0" pn="section-17-4.3.1">ul with no bullets</t>
<ul empty="true" bare="false" indent="3" spacing="normal" pn="section-17-4.3.2">
<li pn="section-17-4.3.2.1">
<ul bare="false" empty="false" indent="3" spacing="normal" pn="section-17-4.3.2.1.1">
<li pn="section-17-4.3.2.1.1.1">Must not have an empty line with bullet above this line.</li>
</ul>
</li>
</ul>
</li>
<li pn="section-17-4.4">
<t indent="0" pn="section-17-4.4.1">ul with bullets</t>
<ul bare="false" empty="false" indent="3" spacing="normal" pn="section-17-4.4.2">
<li pn="section-17-4.4.2.1">
<ul bare="false" empty="false" indent="3" spacing="normal" pn="section-17-4.4.2.1.1">
<li pn="section-17-4.4.2.1.1.1">Must have an empty line with bullet above this line.</li>
</ul>
</li>
</ul>
</li>
</ul>
</section>
</middle>
Expand Down
9 changes: 9 additions & 0 deletions tests/valid/elements.text
Original file line number Diff line number Diff line change
Expand Up @@ -1101,6 +1101,15 @@ Unnumbered section

Dreiunddreißig Gedichte

* ul with no bullets

o Must not have an empty line with bullet above this line.

* ul with bullets

-
o Must have an empty line with bullet above this line.

References

Normative References
Expand Down
24 changes: 23 additions & 1 deletion tests/valid/elements.v3.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<meta content="
This is the abstract.
" name="description">
<meta content="xml2rfc 3.18.0" name="generator">
<meta content="xml2rfc 3.22.0" name="generator">
<meta content="elements-00" name="ietf.draft">
<link href="tests/input/elements.xml" rel="alternate" type="application/rfc+xml">
<link href="#copyright" rel="license">
Expand Down Expand Up @@ -1740,6 +1740,28 @@ <h2 id="name-unnumbered-section">
</pre><a href="#section-17-4.2.1" class="pilcrow"></a>
</div>
<p id="section-17-4.2.2"><a href="#GEDICHTE" class="internal xref">Dreiunddreißig Gedichte</a><a href="#section-17-4.2.2" class="pilcrow"></a></p>
</li>
<li style="margin-left: 0.5em;" class="normal" id="section-17-4.3">
<p id="section-17-4.3.1">ul with no bullets<a href="#section-17-4.3.1" class="pilcrow"></a></p>
<ul class="normal ulEmpty">
<li class="normal ulEmpty" id="section-17-4.3.2.1">
<ul class="normal">
<li class="normal" id="section-17-4.3.2.1.1.1">Must not have an empty line with bullet above this line.<a href="#section-17-4.3.2.1.1.1" class="pilcrow"></a>
</li>
</ul>
</li>
</ul>
</li>
<li style="margin-left: 0.5em;" class="normal" id="section-17-4.4">
<p id="section-17-4.4.1">ul with bullets<a href="#section-17-4.4.1" class="pilcrow"></a></p>
<ul class="normal">
<li class="normal" id="section-17-4.4.2.1">
<ul class="normal">
<li class="normal" id="section-17-4.4.2.1.1.1">Must have an empty line with bullet above this line.<a href="#section-17-4.4.2.1.1.1" class="pilcrow"></a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</section>
Expand Down
Loading

0 comments on commit fe595b1

Please sign in to comment.