| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
instead of /tmp, this is not allowed. I'm not sure what setupGlobals() is meant to do nowadays, that part is untested. It seems to be duplicated in ParserTest::__construct().
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/114224
|
|
|
|
|
|
|
|
|
| |
Simplify if
Fix whitespace
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110609
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/108475
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
tests via --group Parser or specifying
the includes/parser/MediaWikiParserTest.php test case
* Drop now unused various test recorder options -- phpunit outputs its data in lots of machine-readable formats, use those if you need to work with
test data
* There's still a lot of duplication between NewParserTest::setUp() and MediaWikiTestCase, but hey one step at a time ;-)
* All tests pass for me (make phpunit && make parser)
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/108358
|
|
|
|
|
|
|
|
|
|
|
| |
master database directly instead
* Also pass the line number
* Removed useless usage of $title when throwing the exception about invalid since that variable is always null
* Added $ignoreDuplicate parameter to ParserTest::addArticle()
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/108316
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/108310
|
|
|
|
|
|
|
|
| |
Not sure why it is suddenly needed.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/108136
|
|
|
|
|
|
|
|
|
| |
exception when running parser tests.
See https://www.mediawiki.org/wiki/Special:Code/MediaWiki/106752#c28264 for the report.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/107724
|
|
|
|
|
|
|
|
|
|
|
|
| |
FileBackendGroup. Deferred registration of file backends and lock managers to the respective singleton() functions for the group objects.
* Refactored FileRepo::initZones() to require the specific zones; nothing was using it differently.
* Removed deleted zone check in deleteBatch(), a similar error will instead trigger with the initZones() call as needed.
* Added $wgLocalFileRepo comment.
* Updated tests.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/107028
|
|
|
|
|
|
|
| |
books, video, 3D meshes, and animated holograms from the future!
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/106894
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/106771
|
|
|
|
|
|
|
| |
changes SVN likes to sprinkle in (easy to spot from the change list). Did not add SwiftFileBackend.php as it still is in development.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/106752
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/105786
|
|
|
|
|
|
|
| |
I'll be amazed if this doens't break any tests.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/103817
|
|
|
|
|
|
|
|
|
| |
PHPUnit use the --filter option and I keep incorrectly using it for
parserTest. So this is adding an alias of --regex.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/103699
|
|
|
|
|
|
|
| |
Remove a couple of unused variables
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/103323
|
|
|
|
|
|
|
| |
global variables or recreating more instance of those classes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/102648
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix:
Bug 29912 - Unit tests break if parsertest tables are still present
The parserTest suite duplicate available tables. When using temporary table
it assumed every table are temporary. Under SQLite searchindex is a virtual
table and thus remained after a run of parserTests.php
As a side effect, when running the PHPUnit with that remaining table, it
caused a nice error:
The last attempted database query was:
"DELETE FROM unittest_parsertest_searchindex"
from within function "MediaWikiTestCase::resetDB".
Database returned error "1: SQL logic error or missing database"
This patch is not needed for REL1_18 continuous integration since we
never run the parserTests.php script.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/101002
|
|
|
|
|
|
|
| |
with DB errors. Something is wonked with the order of temp table creation.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/100933
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/100931
|
|
|
|
|
|
|
|
|
| |
Fix document comment blocks
Tweak some returns
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/100779
|
|
|
|
|
|
|
| |
so that tests are always run with it on.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/98056
|
|
|
|
|
|
|
|
|
|
|
| |
method for the most common use case:
$wgDeferredUpdateList[] = new HTMLCacheUpdate( $title, "sometable" );
I kept b/c with $wgDeferredUpdateList for now, but seeing as only 3 exts in svn use it (FileSearch, FlaggedRevs and WikiScripts), I'd like to deprecate it pretty soon :)
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/96716
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/96349
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/96341
|
|
|
|
|
|
|
| |
practically do the same thing.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/96336
|
|
|
|
|
|
|
|
| |
* Don't create a WebRequest instance to put in $wgRequest in test since it is meant for HTTP requests, not command line ones
* Force $wgAlwaysUseTidy to false in ExtraParserTest, having it to true breaks testBug8689() and testParse()
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/94643
|
|
|
|
|
|
|
| |
* Use INSERT IGNORE for the site_stats row (as for the interwiki entries); was throwing query error about duplicate row on my installation
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/93980
|
|
|
|
|
|
|
| |
disabled (but exists). While we're at it, make things work for HipHop too.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/93789
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/93132
|
|
|
|
|
|
|
| |
was only used for since-removed CR integration
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/91211
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/91067
|
|
|
|
|
|
|
|
|
|
| |
use this silly annotation anymore, that's what the static keyword is for.
* Enforce protected on SpecialAllPages::getNamespaceKeyAndText(), it's not @private like the comment implies
* Drop User::getMaxID(), nothing uses it
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/90026
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/90021
|
|
|
|
|
|
|
| |
Can somebody explain me why on earth do we need ParserTest::setUp() since all of this is done before each test in ParserTest::setupGlobals()?
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/88653
|
|
|
|
|
|
|
| |
I can't see how to avoid the circular dependencies on it *without* stubbing it. Probably easier to just continue the drive to deprecate the global variable altogether.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/86809
|
|
|
|
|
|
|
| |
do not call either $wgLang or $wgContLang at least once. All index.php calls unstub $wgContLang from MediaWiki::parseTitle() except in the edgecase of viewing pages referenced only by "curid=123", and since those will end up calling OutputPage::output() they will eventually be unstubbed at some point as well. All calls through load.php unstub $wgLang in ResourceLoaderContext::getLanguage() from ResouceLoader::respond() --> ResourceLoader::preloadModuleInfo(). All calls through api.php unstub $wgContLang in ApiResult::cleanUpUTF8() from ApiMain::printResult().
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/86775
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
main step in extension-ification of the math options!
The 'math' table will no longer be created on a default install unless you've explicitly enabled the Math plugin at install time; the usual update.php procedure will add it in.
Postgres, Oracle, MSSQL, and DB2 variants are included -- broken out from the core files -- but have not been tested.
I know there has been some code duplication in parser test infrastructure but could only find one instance of the parser test temporary table setup to remove the 'math' table from (the extension adds it back via the hook). If the phpunit-based runner breaks, please track it down and fix it there too.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/86741
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* (bug 14202) $wgUseTeX has been superseded by the Math extension. To re-enable
math conversion after upgrading, obtain the Math extension from SVN or from
http://www.mediawiki.org/wiki/Extension:Math and add to LocalSettings.php:
require_once "$IP/extensions/Math/Math.php";
This is an initial stab, and a few things remain to be cleaned up:
* messages need to be moved from core to extension
* MW_MATH_* constants should be moved to the extension from core
* old back-compat math names interfaces using those constants should be removed from message files
* classic edit toolbar's math button should be added from the extension (or else dropped) -- currently there's not a clean hook, but could do it by JS
* couple of things like the 'armourMath' function on Language & LanguageConverter may want to be redone just as an unconditional, if that's simpler.
Setting $wgUseTeX alone will no longer have any affect. The var's still there for the moment as a few bits still need to be fully moved out from core.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/85706
|
|
|
|
|
|
|
| |
test runs.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/85702
|
|
|
|
|
|
|
|
|
| |
$GLOBALS['wgContLang'] = $context->lang;
is not assigning $wgContLang the same $langObj instantiated a couple of lines above, but a different object obtained from the user code, breaking variant parsertestsw..
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/85581
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/85553
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/85403
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/83297
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/83144
|
|
|
|
|
|
|
| |
Cleaning var_dump() usage.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/81829
|
|
|
|
|
|
|
|
|
|
|
| |
one instance of this class (as for ParserCache, LinkCache)
* MessageCache::singleton() calls wfGetMessageCacheStorage() directly instead of using $messageMemc, just in case this would be called before that variable is set
* Per TimStarling: also removed deprecated methods in MessageCache class: addMessages() and related, [get|set|enable|disable]Transform(), loadAllMessages(), loadMessageFile() and some others. Same for the legacyData stuff in LocalisationCache that was only used by MessageCache::addMessages() and related.
* Converted remaining extensions
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/81027
|
|
|
|
|
|
|
| |
when disabled in local config
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/80907
|
|
|
|
|
|
|
| |
'diff' command; use 'fc' instead.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/80429
|
|
|
|
|
|
|
| |
Document $db in parserTest
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/79783
|