Allow more-descriptive section names for parserTests
authorArlo Breault <abreault@wikimedia.org>
Thu, 10 Oct 2013 23:10:15 +0000 (16:10 -0700)
committerC. Scott Ananian <cscott@cscott.net>
Wed, 12 Mar 2014 16:07:56 +0000 (12:07 -0400)
commit23aadb06dcf6b6bdfca3e08a7713dcaeb66052a6
treee159e00c83ab98e8841a53c098d0ae4037c951af
parent0f146cc4a264416654d4823bb331129808316b9d
Allow more-descriptive section names for parserTests

This patch allows `!!wikitext` (for `!!input`) and `!!html` (for
`!!result`). This is more in line with what those sections actually
contain and closer to the semantics of how they are used.

The old names are accepted as aliases to accomodate parser tests to
provide a migration path for extensions and other users of the
parser tests framework.

In addition to `!!html`, this patch also accepts `!!html/*` and the
more-specific `!!html/php`.  This allows tests to include a number
of different "outputs" for a given wikitext input, for example
`!!html/parsoid` and `!!html/php`.

Co-authored-by: C. Scott Ananian <cscott@cscott.net>
Co-authored-by: Arlo Breault <abreault@wikimedia.org>
Change-Id: Ie4e68960ca7c352af495ebb59ba83488935a44c4
RELEASE-NOTES-1.23
tests/parser/parserTest.inc
tests/parser/parserTests.txt
tests/testHelpers.inc