| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
Change-Id: I5f4bc0df8183cf338ff45cacfc7279c2cd38ee04
|
|
|
|
| |
Change-Id: Ied40e5afb1027f7d8ff46ffbf722ff6558eed880
|
|
|
|
|
|
|
|
|
|
| |
This change removed getHtml(), but not the call to it from fillParserOutput.
It has a few other issues that I'll flag in-line after deploying the revert.
This reverts commit fda090a7e7f85f146ec84798fda45232ab67613e
Bug: 49398
Change-Id: Idcef8d4cedc7c03f72bc1743e0f89cc5ed4ad7a7
|
|
|
|
|
|
|
|
|
| |
This hooks allows extensions to override the normal model-specific rendering
of page content. A typical use would be to provide syntax highlighting for
pages that contain scripts. In that sense, ContentGetParserOutput is a
generalization of the old ShowRawCssJs hook.
Change-Id: Ibfb2cbefea44eeee9f2a027f47e7721bf177ba0f
|
|
|
|
|
|
|
|
|
|
| |
Most were this way already:
https://doc.wikimedia.org/mediawiki-core/master/php/html/todo.html
Ran a find/replace on the odd ones. Also made them all
lower case.
Change-Id: I70c6a69344ddebc603e9a1c1d87e3cc4f4f4c560
|
|
|
|
| |
Change-Id: I16a9b42651f1cfb1a70dffbb67b7b83dfeb90d03
|
|
|
|
|
|
|
|
|
| |
Change some tests to use setMwGlobals to have restoring of globals after
the test.
This also removes some save/restore code, which is not needed, due to
the automatically restoring on tearDown with setMwGlobals.
Change-Id: I8d2ac9f6cc14f0bd4ee8eb851c09f2e71babc6e0
|
|
|
|
|
|
| |
4 of n.
Change-Id: I23e2409ce9eff14c3434154d236de83c93a92440
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If $wgUseTidy = true on LocalSettings, although this test
runs fine standalone, when batched with other database tests
it can fail with:
--- Expected
+++ Actual
@@ @@
-'<p>hello <i>world</i>
-</p>'
+'<p>hello <i>world</i></p>'
Change-Id: Id143abf45def7bb686f00584d3f7838dc7396ad7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently TextContentTest::testDeletionUpdates() and
WikitextContentTest::testGetSecondaryDataUpdates() set a random page ID to
pages that does not exist. This works in most cases, but when a method like
Title::getLatestRevID() is called on these objects, it throws an excpection
"LinkCache doesn't currently knows about this title."
This happens e.g. when SemanticMediaWiki extension is installed.
Intsead of setting a random page ID, really insert the page in the database
before getting table updates so that it won't crash anymore.
Change-Id: I489c406f78897bc38ac41d8d599b778b47b30021
|
|
|
|
| |
Change-Id: I95bfb8860f77d01bad027d1c2baf2d871e093758
|
|
|
|
|
|
| |
There is signature expansion, which fails on $wgLanguageCode = 'de';
Change-Id: I827693a9f872219b983c62f4d3483e67ed9e8a2f
|
|
|
|
|
|
| |
Tidy changes some whitespaces in the HTML which breaks the tests if enabled.
Change-Id: Ib44f60c0d4b595c76c258b41962c3c45ca21ac3e
|
|
|
|
|
|
|
|
|
|
|
| |
This is needed to fix bug 41706 and similar, watch for follow-ups.
Automatic, implicit conversion may be handy in several cases, especially
for converting between different text based content models. E.g. it should
be possible to create a diff between a JavaScript and a wikitext page. This
change lais the foundations for this ability.
Change-Id: Ie7d87b67b24ac9897cb5696220a7785b228d3c79
|
|
Syntax:
* Call parent setUp from setUp.
* Set required globals for the test inside the test class instead
of assuming the default settings.
* Data providers are called statically and outside setUp/tearDown
("public static function")
* Test function names should be prefixed with "test"
("testIsRedirect")
* Marked 2 functions as unused. JavascriptContentTest has 2 data
providers for tests that don't exist in it (nor in TextContentText)
but do exist in WikitextContentTest.
Style:
* Single quotes
* Remove odd comment "# =====" lines
* Consistent tree wrapping with arrays.
array(
array(
.. ) );
array(
array(
..
)
);
Some were closing on the previous line instead.
Made it consistent now.
* Remove odd indentation to make nested arrays line up:
array( 'foo' => array( 'bar' => true,
'baz' => array() ) )
array( 'foo' => array(
'bar' => true,
'baz' => array()
) )
We don't do this kind of indentation because it is fragile
and becomes outdates when any of the earlier keys ("foo")
change. Converted to a regular tree instead.
Also triggered git warnings for mixing spaces with tabs, which
is almost always an detector for this style.
* Not using @annotations in inline comments, reserved (and only
parsed/meaningful) for block comments.
Follows-up 8b568be5e2dfb889e1eeedbdca50b304864174f7
Change-Id: Ic55d539b9a58f448b550bcd98894d389764e0694
|