From f86b5073fd8462f6f8f1d0b18fd5619f16e81e2c Mon Sep 17 00:00:00 2001 From: Thiemo Kreuz Date: Wed, 11 Dec 2019 16:30:17 +0100 Subject: [PATCH] Add parser tests for reused extended before defined Bug: T240424 Change-Id: I945c2e12cfa3ff851380a1ff4491c8af076f523a --- tests/parser/bookReferencing.txt | 47 ++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/tests/parser/bookReferencing.txt b/tests/parser/bookReferencing.txt index 3ef310917..f075cf88b 100644 --- a/tests/parser/bookReferencing.txt +++ b/tests/parser/bookReferencing.txt @@ -81,6 +81,53 @@ wgCiteBookReferencing=true !! end +# TODO: The number for the first must be "1.1", not just "1" +!! test +T240424 - Extended reference reused before defined in the text +!! config +wgCiteBookReferencing=true +!! wikitext + +page 2 +book +!! html +

[1] +[1.1] +

+[1]
    +
  1. book +
    1. 1.1.0 1.1.1 page 2 +
    2. +
  2. +
+!! end + +# TODO: This currently renders as if the extends="…" is not there +# TODO: Render a helpful error message to make this issue visible +# TODO: Find a way to render this properly +!! test +T240424 - Extended reference reused before defined in the section +!! config +wgCiteBookReferencing=true +!! wikitext + + + +page 2 +book + +!! html +

[1] +[2] +

+
    +
  1. book +
  2. +
  3. page 2 +
  4. +
+!! end + # TODO: The two identical tags should be merged into one !! test T240459 - References should be merged when they have the exact same content