Commit graph

49 commits

Author SHA1 Message Date
MatmaRex b104717624 Fix parser tests for master MediaWiki core
Caused by I33462a8b in core.

Bug: 52961
Change-Id: I7efa50f4ac86ee732d9ce34fdaa3d8c28179d062
2013-08-17 10:24:29 +00:00
Ed Sanders 4f3f9068b0 Add more specific class to cite errors
Problem:

* VisualEditor needs to be able to more reliably target Cite errors.

Solution:

* Add a more specific class to cite errors

Grumble:

* Ideally all extensions would use mw-ext-{extension name} as a prefix to
  their CSS classes (or something similar).

Bug: 51337
Change-Id: If4f5360cc1c7b765ad896b14901a9b024782cc93
2013-07-15 01:46:53 +00:00
Platonides d91d8a8f63 Adapt the <gallery> parser test for $wgResponsiveImages
$wgResponsiveImages was added and enabled by default in 966cda.
Makes the wiki to use thumb urls in some cases (up to 2x)
where we showed the original before.

Change-Id: I7b399c7d8ef9e47f8cd5c999738ec349e1585777
2012-11-26 22:08:11 +01:00
Brad Jorsch e6c76b5d23 (bug 13073) Work around Tidy confusion
If the <references> tag is wrapped (e.g. <div><references></div>) and
the first ref on the page contains a newline, Tidy will get confused and
insert extra paragraph breaks in the output.

We can avoid this easily enough by inserting a newline between
MediaWiki:cite_references_prefix and the first reference's <li>.

Note since this changes the output we also have to adjust the parser
tests to expect the new output.

Change-Id: I8222d53eaf2b20f842915fe90af724711a20bfc5
2012-11-26 19:29:03 +01:00
eranroz da8e6f3b45 Cite anchors should be numbered starting at 1
Fix for bug 10537: Cite anchors should be numbered starting at 1
On the way a small refactoring (getting rid of redundant variable)

Change-Id: Iee94917f3f860516cc310d1cdb1c4f9065d40984
2012-10-18 01:03:31 +02:00
Brad Jorsch 4933d7a682 (bug 17865) Fix wikilinking in "refs without references" error
The [[MediaWiki:Cite error refs without references]] message does not
correctly display wikilinks. This is because it takes effect during
ParserBeforeTidy, which misses the call to replaceLinkHolders(). And
parsing directly to HTML (with MessageCache::singleton()->parse()) would
lose categories and such added by the error message.

Gerrit change Iaa2755f994edb081eb1d176f632f7add41640dbf adds a
"ParserAfterParse" hook, which can be used to add this message in time
to be correctly handled by replaceLinkHolders().

Change-Id: I093d85d8f8c2ac3238609d145ae5b985602bb3fd
Depends-On: Iaa2755f994edb081eb1d176f632f7add41640dbf
2012-08-07 13:16:46 -04:00
mrbluesky 460275fd4e Follow-up to r111150. Update parsertests, remove item from release notes. 2012-02-10 14:21:45 +00:00
Max Semenik 53ae80785a Follow-up r102160: removed arrows from tooltips 2012-01-04 15:00:01 +00:00
Antoine Musso 2ebda89b06 Bug 31374: regression test made by Brion
Was originally added by accident with r101522 and lost with r105321.
I add to add a newline before </li>, probably some format changed somewhere.

Added it back just so we do not lost this test.
2011-12-13 11:16:51 +00:00
Roan Kattouw f0eec14538 Followup r102970, fix parser tests 2011-11-14 12:20:24 +00:00
Ryan Kaldari 5f64b024d4 fixing parser test per r91573 2011-07-06 18:26:51 +00:00
OverlordQ 3b82bbc810 Tweak to r82735, forgot to correct margin 2011-02-24 17:21:01 +00:00
OverlordQ dd663728af Fix Cite parser test for recent gallery changes 2011-02-24 17:11:32 +00:00
Derk-Jan Hartman 4450a9311b Follow up to r77836. Update parserTests for Cite extension due to Gallery change. 2010-12-13 20:35:25 +00:00
Aryeh Gregor 31d5539803 Give image <gallery>s fluid width
Bug 3276.  Patch by DieBuche, with style cleanups by me, plus a tweak
from comment 27 of the bug to fix spacing.  This incidentally removes
the border around galleries, but this was hard to notice anyway, and
could be easily readded if desired.  Tested in a few browsers, including
IE6, but more testing and/or input from CSS gurus would be appreciated.

Updates parser tests, including for Cite.
2010-11-29 00:11:19 +00:00
Platonides d9b8f32959 Add lists cite_link_label_group-$group to be used for the groups links names.
Fixes bug 22265
2010-05-22 14:28:48 +00:00
OverlordQ 3de4107480 Update parser test to match core wrt thumbnailing (r61777) 2010-02-01 21:44:34 +00:00
Robert Rohde 75004e338f Extends Cite to allows <ref> content to be defined within a <references> block
See comments on Bug 5997, Bug 15724, and discussion at:
 http://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Citing_sources&oldid=304222618#Improving_.3Cref.3E
2009-07-26 22:15:13 +00:00
Remember the dot bb757ec5ba Updated parser test for r52726 and r53287 2009-07-15 04:19:41 +00:00
Aryeh Gregor da56a4b7db Fix parser test broken by r51414 2009-06-05 16:04:19 +00:00
Aryeh Gregor 35593a4bbe Remove superfluous border="0" from images
This should be (and appears to be) handled just fine by CSS.  If it
breaks in any skins, those should have an appropriate CSS rule added.
2009-04-03 14:46:32 +00:00
Aryeh Gregor 245673a16c Don't add empty title attributes to anchor links
All parser tests updated.
2009-03-31 14:26:40 +00:00
Aryeh Gregor 87d06b1ef4 Fix parser test broken by r49020 2009-03-31 14:16:36 +00:00
Alex Z. ca5c36c9b5 (bug 16854) Show an error message when a page has <ref> tags and no <references/>. Patch by Brad Jorsch. 2009-01-26 18:02:28 +00:00
Tim Starling c3048a5e92 Reverting r45379 as per comment 5 on bug 16854, i.e. it doesn't work with section editing. 2009-01-07 13:10:29 +00:00
Chad Horohoe a82380d2a6 (bug 16854) Provide explicit error when <references /> is omitted. Patch by Brad Jorsch. 2009-01-03 18:59:22 +00:00
Siebrand Mazeland 101a9cda45 (bug 44) Rename Image namespace to File. Based on a patch by brion.
* Parser tests updated. 14 failing parser tests before the change, added one, and the same 14 failing parser tests are remaining
* added namespace aliases for Image and Image_talk for backward compatibility purposes
2008-11-17 21:27:00 +00:00
Brion Vibber 340559a0f2 Parser test case for bug 14216
from https://bugzilla.wikimedia.org/attachment.cgi?id=5005
2008-06-20 18:41:14 +00:00
Brion Vibber 27023a48a9 update parser test case results with current message value 2008-04-18 22:48:57 +00:00
Steve Sanbeg 448a99da51 add group option, initialize structures when we start group, clear them when finished 2008-03-21 15:25:26 +00:00
Brion Vibber 58f061fadf Revert r32256 -- lots of notice errors about undefined index & such seen while running tests 2008-03-21 00:19:18 +00:00
Steve Sanbeg b9db9c27e4 add "group" parameter to allow multiple reference/footnote groups 2008-03-20 21:26:54 +00:00
Brion Vibber e44423e8e9 Update tests for <ref> fragment ID changes in r32160
Note that underscores *are* valid to begin an ID with in XHTML, but not in HTML 4, so are recommended against in HTML-compatible XHTML, although browsers seem to allow it.
2008-03-19 20:17:57 +00:00
Aryeh Gregor a03e2a48d5 Improve clarity of error message when no text is given for a reference. 2008-01-04 13:58:40 +00:00
Aryeh Gregor 7a0d1123e9 Parser test to check for the regression fixed by 28906. 2007-12-27 22:25:15 +00:00
Aryeh Gregor b3b7be4e85 Changed messages to be a more standard format, to help localization with BetaWiki et al., at request of siebrand. Thanks to help from siebrand. All Cite parser tests pass. 2007-12-16 20:18:33 +00:00
Aryeh Gregor 7e700530b8 Reduce nesting and code duplication in guardedRef; add comments. This is preparatory to possibly adding new attributes, like group or HTML attributes. Also, add a new parser test to verify failure on errors, improve should-never-occur messages slightly. 2007-12-16 18:49:10 +00:00
Brion Vibber 1445748d41 adjust parser tests to match slightly wider gallery width per r25822 2007-09-13 19:24:43 +00:00
Tim Starling 2c253f3a5c updated image syntax 2007-08-31 16:45:54 +00:00
Brion Vibber f078bbdb08 Alter test cases for changed behavior of <references/> when no <ref>s were present 2007-05-09 14:48:05 +00:00
Raimond Spekking 4b24633d84 Fix for r20190 2007-03-08 11:20:36 +00:00
Raimond Spekking ca51a61190 * (bug 8941) fix cite parser test, broken by r19845
patch by Rob Church
2007-02-10 19:07:34 +00:00
Aryeh Gregor 627c004733 More bloody parser tests 2007-02-06 13:32:50 +00:00
Aryeh Gregor 34babc0603 Hopefully fix parsertests for Cite (thanks Rob) 2007-02-04 03:12:57 +00:00
Brion Vibber ff99847497 Parser tests for recent change in <ref> behavior, plus fix for failure of that behavior when the first ref is set to exactly "0" 2006-11-03 15:34:46 +00:00
Brion Vibber 9b81afd41d Add parser test for bug 6299 2006-07-10 17:59:37 +00:00
Brion Vibber 34ce1052bc Fix tests for a parser fix with <ol> 2006-07-10 17:56:51 +00:00
Brion Vibber d3aa609189 Add regression test for bug 6164 2006-06-01 21:11:29 +00:00
Brion Vibber dd15a590bb A few test cases for <ref> behavior 2006-06-01 05:58:52 +00:00