From 245673a16c4fb1f340c7b8dcfababa2e8388e901 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Tue, 31 Mar 2009 14:26:40 +0000 Subject: [PATCH] Don't add empty title attributes to anchor links All parser tests updated. --- citeParserTests.txt | 82 ++++++++++++++++++++++----------------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/citeParserTests.txt b/citeParserTests.txt index f28b71a81..c0455f109 100644 --- a/citeParserTests.txt +++ b/citeParserTests.txt @@ -9,7 +9,7 @@ Simple , no !! input Wikipedia rocks!Proceeds of Rockology, vol. XXI !! result -

Wikipedia rocks![1] +

Wikipedia rocks![1]


Cite error: <ref> tags exist, but no <references/> tag was found !! end @@ -21,9 +21,9 @@ Wikipedia rocks!Proceeds of Rockology, vol. XXI !! result -

Wikipedia rocks![1] +

Wikipedia rocks![1]

-
  1. Proceeds of Rockology, vol. XXI
+
  1. Proceeds of Rockology, vol. XXI
!! end @@ -42,9 +42,9 @@ Templating{{simple template}} !! result -

Templating[1] +

Templating[1]

-
  1. A simple template.
+
  1. A simple template.
!! end @@ -55,9 +55,9 @@ Templating{{simple template}} !! result -

Templating[1] +

Templating[1]

-
  1. {{simple template}}
+
  1. {{simple template}}
!! end @@ -93,9 +93,9 @@ TemplatingText !! result -

Templating[1] +

Templating[1]

-
  1. Text
+
  1. Text
!! end @@ -108,7 +108,7 @@ TemplatingText !! result -

[1] +

[1]

@@ -119,7 +119,7 @@ TemplatingText -
  1. one
+
  1. one
!! end @@ -128,7 +128,7 @@ TemplatingText !! input {{REVISIONID}}elite !! result -

1337[1] +

1337[1]


Cite error: <ref> tags exist, but no <references/> tag was found !! end @@ -151,10 +151,10 @@ Blank ref followed by ref with content !! result -

[1] -

[1] +

[1] +

[1]

-
  1. 1.0 1.1 content
+
  1. 1.0 1.1 content
!! end @@ -167,10 +167,10 @@ Regression: non-blank ref "0" followed by ref with content !! result -

[1] -

[1] +

[1] +

[1]

-
  1. 1.0 1.1 0
+
  1. 1.0 1.1 0
!! end @@ -183,10 +183,10 @@ Regression sanity check: non-blank ref "1" followed by ref with content !! result -

[1] -

[1] +

[1] +

[1]

-
  1. 1.0 1.1 1
+
  1. 1.0 1.1 1
!! end @@ -199,13 +199,13 @@ Ref names containing a number !! result -

[1] -[2] -[3] +

[1] +[2] +[3]

-
  1. One
  2. -
  3. Two
  4. -
  5. Three
+
  1. One
  2. +
  3. Two
  4. +
  5. Three
!! end @@ -230,21 +230,21 @@ Erroneous refs !! result

Cite error: Invalid <ref> tag; name cannot be a simple integer. Use a descriptive title -

[1] +

[1]

Cite error: Invalid <ref> tag; refs with no content must have a name -

[2] -

[3] +

[2] +

[3]

Cite error: Invalid <references> tag; no input is allowed. Use <references />

Cite error: Invalid <references> tag; parameter "group" is allowed only. Use <references />, or <references group="…" />

-
  1. Also zero, but differently! (Normal ref)
  2. -
  3. Cite error: Invalid <ref> tag; +
    1. Also zero, but differently! (Normal ref)
    2. +
    3. Cite error: Invalid <ref> tag; no text was provided for refs named bar
    4. -
    5. Cite error: Invalid <ref> tag; +
    6. Cite error: Invalid <ref> tag; no text was provided for refs named blankwithnoreference
    !! end @@ -259,11 +259,11 @@ Wikipedia rocks!Proceeds of Rockology, vol. XXI !! result -

    Wikipedia rocks![1] -Wikipedia rocks![note 1] +

    Wikipedia rocks![1] +Wikipedia rocks![note 1]

    -
    1. Proceeds of Rockology, vol. XXI
    -
    1. Proceeds of Rockology, vol. XXI
    +
    1. Proceeds of Rockology, vol. XXI
    +
    1. Proceeds of Rockology, vol. XXI
    !! end @@ -277,14 +277,14 @@ AAAref aBBBnote bCCC !! result -

    AAA[参 1]BBB[注 1]CCC[参 2] +

    AAA[参 1]BBB[注 1]CCC[参 2]

    refs
    -
    1. ref a
    2. -
    3. ref c
    +
    1. ref a
    2. +
    3. ref c
    notes
    -
    1. note b
    +
    1. note b
    !! end