From 9a8c718c2a80c43d5980fc81db4b0cd059123045 Mon Sep 17 00:00:00 2001 From: Thiemo Kreuz Date: Mon, 10 Dec 2018 12:28:29 +0100 Subject: [PATCH] Add missing test cases for code in Cite::refArg This is split from I642d38e and does nothing but adding test cases that document the current (broken) behavior. Bug: T211576 Change-Id: Iee313d26e7bed6deb34101e37736a1c697947905 --- tests/parser/citeParserTests.txt | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/tests/parser/citeParserTests.txt b/tests/parser/citeParserTests.txt index 26bba637c..4a0a74f95 100644 --- a/tests/parser/citeParserTests.txt +++ b/tests/parser/citeParserTests.txt @@ -307,6 +307,46 @@ no text was provided for refs named blankwithnoreferencetheValue + +!! html +

Cite error: Invalid <ref> tag; +invalid names, e.g. too many +

+!! end + +!! test +FIXME: Invalid parameters (here: conflicting name and follow) are just ignored when a third is present! +!! wikitext +theValue + +!! html +

[1] +

+
    +
  1. theValue +
  2. +
+ +!! end + +!! test +FIXME: Valid parameters are just ignored when a third is present! +!! wikitext +theValue + +!! html +

[1] +

+
    +
  1. theValue +
  2. +
+ +!! end !! test Simple , with in group