From fe595b1376d9359f27a3879b633d272d4d016f45 Mon Sep 17 00:00:00 2001 From: Kesara Rathnayake Date: Fri, 12 Jul 2024 19:37:09 +1200 Subject: [PATCH] test: Add test for ul with empty bullets --- tests/input/elements.xml | 20 +++++++++++++ tests/valid/elements.bom.text | 48 ++++++++++++++++---------------- tests/valid/elements.pages.text | 48 ++++++++++++++++---------------- tests/valid/elements.prepped.xml | 22 ++++++++++++++- tests/valid/elements.text | 9 ++++++ tests/valid/elements.v3.html | 24 +++++++++++++++- tests/valid/elements.wip.text | 48 ++++++++++++++++---------------- 7 files changed, 145 insertions(+), 74 deletions(-) diff --git a/tests/input/elements.xml b/tests/input/elements.xml index 8834dbe9..17497fa0 100644 --- a/tests/input/elements.xml +++ b/tests/input/elements.xml @@ -1336,6 +1336,26 @@ for opt, value in opts: +
  • + ul with no bullets + +
  • +
  • + ul with bullets + +
  • diff --git a/tests/valid/elements.bom.text b/tests/valid/elements.bom.text index 2fcf5d7e..4928cc27 100644 --- a/tests/valid/elements.bom.text +++ b/tests/valid/elements.bom.text @@ -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 @@ -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 @@ -1329,15 +1338,6 @@ Normative References 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . -Informative References - -CMS References - - - - - - @@ -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- @@ -1390,10 +1394,6 @@ MIME-SPEC References RFC 2047, DOI 10.17487/RFC2047, November 1996, . - [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, - . @@ -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, + . + [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, @@ -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. - - @@ -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: @@ -1505,10 +1509,6 @@ Authors' Addresses - - - - Author, et al. Expires 13 January 2019 [Page 27] Internet-Draft Xml2rfc Vocabulary V3 Elements July 2018 diff --git a/tests/valid/elements.pages.text b/tests/valid/elements.pages.text index b351ba43..439400e9 100644 --- a/tests/valid/elements.pages.text +++ b/tests/valid/elements.pages.text @@ -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 @@ -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 @@ -1329,15 +1338,6 @@ Normative References 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . -Informative References - -CMS References - - - - - - @@ -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- @@ -1390,10 +1394,6 @@ MIME-SPEC References RFC 2047, DOI 10.17487/RFC2047, November 1996, . - [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, - . @@ -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, + . + [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, @@ -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. - - @@ -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: @@ -1505,10 +1509,6 @@ Authors' Addresses - - - - Author, et al. Expires January 13, 2019 [Page 27] Internet-Draft Xml2rfc Vocabulary V3 Elements July 2018 diff --git a/tests/valid/elements.prepped.xml b/tests/valid/elements.prepped.xml index 53ba8a6a..7f431911 100644 --- a/tests/valid/elements.prepped.xml +++ b/tests/valid/elements.prepped.xml @@ -1,5 +1,5 @@ - + @@ -1558,6 +1558,26 @@ for opt, value in opts: +
  • + ul with no bullets +
      +
    • +
        +
      • Must not have an empty line with bullet above this line.
      • +
      +
    • +
    +
  • +
  • + ul with bullets +
      +
    • +
        +
      • Must have an empty line with bullet above this line.
      • +
      +
    • +
    +
  • diff --git a/tests/valid/elements.text b/tests/valid/elements.text index 77dce0ed..881f19fc 100644 --- a/tests/valid/elements.text +++ b/tests/valid/elements.text @@ -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 diff --git a/tests/valid/elements.v3.html b/tests/valid/elements.v3.html index aea44c5a..8daa7659 100644 --- a/tests/valid/elements.v3.html +++ b/tests/valid/elements.v3.html @@ -15,7 +15,7 @@ - + @@ -1740,6 +1740,28 @@

    Dreiunddreißig Gedichte

    + +
  • +

    ul with no bullets

    +
      +
    • +
        +
      • Must not have an empty line with bullet above this line. +
      • +
      +
    • +
    +
  • +
  • +

    ul with bullets

    +
      +
    • +
        +
      • Must have an empty line with bullet above this line. +
      • +
      +
    • +
  • diff --git a/tests/valid/elements.wip.text b/tests/valid/elements.wip.text index 1653f395..09c5d3ec 100644 --- a/tests/valid/elements.wip.text +++ b/tests/valid/elements.wip.text @@ -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 @@ -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 @@ -1329,15 +1338,6 @@ Normative References 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . -Informative References - -CMS References - - - - - - @@ -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- @@ -1390,10 +1394,6 @@ MIME-SPEC References RFC 2047, DOI 10.17487/RFC2047, November 1996, . - [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, - . @@ -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, + . + [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, @@ -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. - - @@ -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: @@ -1505,10 +1509,6 @@ Authors' Addresses - - - - Author, et al. Expires 13 January 2019 [Page 27] Internet-Draft Xml2rfc Vocabulary V3 Elements July 2018