Tpt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/310738

Change subject: Removes duplicates articles creation in parser tests
......................................................................

Removes duplicates articles creation in parser tests

Bug: T145724
Change-Id: Ida402a80ddf39ddadcd21578f8de6a600c723859
---
M extension.json
A tests/parser/proofreadpage_articles_creation.txt
M tests/parser/proofreadpage_pagelist.txt
M tests/parser/proofreadpage_pages.txt
4 files changed, 106 insertions(+), 138 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ProofreadPage 
refs/changes/38/310738/1

diff --git a/extension.json b/extension.json
index 8624f26..cea5349 100644
--- a/extension.json
+++ b/extension.json
@@ -318,6 +318,7 @@
                ]
        },
        "ParserTestFiles": [
+               "tests/parser/proofreadpage_articles_creation.txt",
                "tests/parser/proofreadpage_pagelist.txt",
                "tests/parser/proofreadpage_pages.txt",
                "tests/parser/proofreadpage_pagequality.txt"
diff --git a/tests/parser/proofreadpage_articles_creation.txt 
b/tests/parser/proofreadpage_articles_creation.txt
new file mode 100644
index 0000000..8ef36b2
--- /dev/null
+++ b/tests/parser/proofreadpage_articles_creation.txt
@@ -0,0 +1,105 @@
+!!article
+MediaWiki:Proofreadpage pagenum template
+!!text
+[[{{{page}}}|{{{num}}}]]
+!!endarticle
+
+!!article
+MediaWiki:Proofreadpage header template
+!!text
+{{{title}}} -- {{{author}}}
+{{{from}}} -- {{{to}}}
+{{{prev}}} -- {{{next}}}
+!!endarticle
+
+!!article
+Index:Test
+!!text
+{{
+|Title=Title
+|Pages=[[Page:Test 1.jpg|TOC]] [[Page:Test 2.tiff|1]] [[Page:Test 3.png|2]]
+|Author=[[Author:Me]]
+|TOC=* [[Test/Chapter 1]]
+* [[Test/Chapter 2|Chapter 2]]
+* [[Test/Chapter 3|Chapter 3]]
+}}
+!!endarticle
+
+!!article
+Index:LoremIpsum.djvu
+!!text
+{{
+|Title=Lorem Ipsum
+|Pages=<pagelist 1to1=roman 2to2=highroman to=2/> <pagelist from=3 3=1 5=empty 
/>
+|Author=[[Author:Me]]
+|TOC=* [[Test/Chapter 1]]
+* [[Test/Chapter 2|Chapter 2]]
+* [[Test/Chapter 3|Chapter 3]]
+}}
+!!endarticle
+
+!!article
+Page:Test 1.jpg
+!!text
+Test 1
+!!endarticle
+
+!!article
+Page:Test 2.tiff
+!!text
+Test 2
+!!endarticle
+
+!!article
+Page:Test 3.png
+!!text
+<nowiki />
+
+Test 3
+!!endarticle
+
+!!article
+Page:LoremIpsum.djvu/1
+!!text
+Page 1
+!!endarticle
+
+!!article
+Page:LoremIpsum.djvu/2
+!!text
+<nowiki />
+
+Page 2
+!!endarticle
+
+!!article
+Page:LoremIpsum.djvu/3
+!!text
+Page 3
+!!endarticle
+
+!!article
+Page:LoremIpsum.djvu/4
+!!text
+Page 4
+!!endarticle
+
+!!article
+Author:Me
+!!text
+!!endarticle
+
+!!article
+Test/Chapter 1
+!!text
+!!endarticle
+
+!!article
+Test/Chapter 2
+!!text
+!!endarticle
+
+!!article
+Test/Chapter 3
+!!text
+!!endarticle
diff --git a/tests/parser/proofreadpage_pagelist.txt 
b/tests/parser/proofreadpage_pagelist.txt
index 58212fe..7aa2bf2 100644
--- a/tests/parser/proofreadpage_pagelist.txt
+++ b/tests/parser/proofreadpage_pagelist.txt
@@ -2,38 +2,6 @@
 pagelist
 !! endhooks
 
-!!article
-Page:LoremIpsum.djvu/2
-!!text
-Lorem ipsum dolor sic amet
-!!endarticle
-
-!!article
-Page:LoremIpsum.djvu/1
-!!text
-Page 1
-!!endarticle
-
-!!article
-Page:LoremIpsum.djvu/2
-!!text
-<nowiki />
-
-Page 2
-!!endarticle
-
-!!article
-Page:LoremIpsum.djvu/3
-!!text
-Page 3
-!!endarticle
-
-!!article
-Page:LoremIpsum.djvu/4
-!!text
-Page 4
-!!endarticle
-
 !! test
 pagelist: in a not Index: page
 !! options
diff --git a/tests/parser/proofreadpage_pages.txt 
b/tests/parser/proofreadpage_pages.txt
index 0640e3e..863ce15 100644
--- a/tests/parser/proofreadpage_pages.txt
+++ b/tests/parser/proofreadpage_pages.txt
@@ -2,112 +2,6 @@
 pages
 !! endhooks
 
-!!article
-MediaWiki:Proofreadpage pagenum template
-!!text
-[[{{{page}}}|{{{num}}}]]
-!!endarticle
-
-!!article
-MediaWiki:Proofreadpage header template
-!!text
-{{{title}}} -- {{{author}}}
-{{{from}}} -- {{{to}}}
-{{{prev}}} -- {{{next}}}
-!!endarticle
-
-!!article
-Index:Test
-!!text
-{{
-|Title=Title
-|Pages=[[Page:Test 1.jpg|TOC]] [[Page:Test 2.tiff|1]] [[Page:Test 3.png|2]]
-|Author=[[Author:Me]]
-|TOC=* [[Test/Chapter 1]]
-* [[Test/Chapter 2|Chapter 2]]
-* [[Test/Chapter 3|Chapter 3]]
-}}
-!!endarticle
-
-!!article
-Index:LoremIpsum.djvu
-!!text
-{{
-|Title=Lorem Ipsum
-|Pages=<pagelist 1to1=roman 2to2=highroman to=2/> <pagelist from=3 3=1 5=empty 
/>
-|Author=[[Author:Me]]
-|TOC=* [[Test/Chapter 1]]
-* [[Test/Chapter 2|Chapter 2]]
-* [[Test/Chapter 3|Chapter 3]]
-}}
-!!endarticle
-
-!!article
-Page:Test 1.jpg
-!!text
-Test 1
-!!endarticle
-
-!!article
-Page:Test 2.tiff
-!!text
-Test 2
-!!endarticle
-
-!!article
-Page:Test 3.png
-!!text
-<nowiki />
-
-Test 3
-!!endarticle
-
-!!article
-Page:LoremIpsum.djvu/1
-!!text
-Page 1
-!!endarticle
-
-!!article
-Page:LoremIpsum.djvu/2
-!!text
-<nowiki />
-
-Page 2
-!!endarticle
-
-!!article
-Page:LoremIpsum.djvu/3
-!!text
-Page 3
-!!endarticle
-
-!!article
-Page:LoremIpsum.djvu/4
-!!text
-Page 4
-!!endarticle
-
-!!article
-Author:Me
-!!text
-!!endarticle
-
-!!article
-Test/Chapter 1
-!!text
-!!endarticle
-
-!!article
-Test/Chapter 2
-!!text
-!!endarticle
-
-!!article
-Test/Chapter 3
-!!text
-!!endarticle
-
 !! test
 pages: without index
 !! wikitext

-- 
To view, visit https://gerrit.wikimedia.org/r/310738
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ida402a80ddf39ddadcd21578f8de6a600c723859
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: master
Gerrit-Owner: Tpt <thoma...@hotmail.fr>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to