Commit graph

31230 commits

Author SHA1 Message Date
Platonides
a42cf73632 Add parsertest for r74526.
Note that if we hadn't the first escaping, we would have a security vulnerability.
So be careful if you break this parser test.
2010-10-08 22:20:57 +00:00
Raimond Spekking
dc2b00761e Localisation updates for core and extension messages from translatewiki.net (2010-10-08 21:23:00 UTC) 2010-10-08 21:40:52 +00:00
Aryeh Gregor
388e4425bf Fix double-escaping for section edit link tooltips
Bug 25462.
2010-10-08 18:52:23 +00:00
Trevor Parscal
e6ed90f56e * Improved on r73971 by removing the $name parameter from MessageBlobStore::gerenateMessageBlob, since it was not being used.
* Fixed bug introduced in r73971 caused by using a module name rather than a module object in MessageBlobStore::updateModule
2010-10-08 18:42:20 +00:00
Purodha B Blissenbach
733d862dfe More documentation. 2010-10-08 17:51:23 +00:00
Purodha B Blissenbach
5f1a69c3cc ConvertGrammar() added to LanguageKsh.php 2010-10-08 14:34:56 +00:00
Roan Kattouw
d670151e17 Improve mediaWiki.parser() (which is a very strange name for a function that expands $1, $2, ... in i18n messages) to use .replace() with a callback, so it will handle edge cases like more than 9 parameters ($10 would be treated as $1 followed by a literal 0) or a parameter's value containing $n (which would then get substituted again). Code written by Neil Kandalgaonkar and trivially modified by me. 2010-10-08 10:49:32 +00:00
Roan Kattouw
ebb291ce8a Fix r74454: convert $wgCacheEpoch to a UNIX timestamp before comparing it with other UNIX timestamps 2010-10-08 10:25:23 +00:00
Trevor Parscal
d19811e469 * ResourceLoaderModule.php - added basePath argument to ResourceLoaderFileModule::__construct to help make module definitions be less repeditive.
* Vector.hooks.php, WikiEditor.hooks.php - implemented new basePath argument for ResourceLoaderFileModule::__construct
2010-10-07 23:31:30 +00:00
Roan Kattouw
92ec8a2bec Remove $wgMemc->set() call left over from r73645 2010-10-07 19:46:06 +00:00
Roan Kattouw
8e65282ff6 (bug 25201) Respect $wgCacheEpoch in the resource loader
* The mtime of each module is now maxed with $wgCacheEpoch before being used. I chose to make this the caller's responsibility rather than getModifiedTime()'s, otherwise custom modules can (and inevitably will) forget to respect $wgCacheEpoch
* Invalidate message blobs if they're older than $wgCacheEpoch
2010-10-07 19:35:05 +00:00
Raimond Spekking
523b947e01 Localisation updates for core and extension messages from translatewiki.net (2010-10-07 19:02:00 UTC) 2010-10-07 19:25:06 +00:00
Roan Kattouw
a12cf1c074 Move $j=jQuery alias up to mediawiki.js from wikibits.js, so code running before wikibits.js can use $j 2010-10-07 18:37:53 +00:00
Aaron Schulz
d6086a51bf Removed single-purpose HTMLCacheUpdate::doUpdate hook, now unused 2010-10-07 18:12:27 +00:00
Roan Kattouw
386eee888c (bug 25276) Fix TOC show/hide toggle. Original fix in r70887 (resourceloader branch), JS change was lost when the mediawiki.legacy.*.js files were removed later and never got ported to wikibits.js 2010-10-07 18:12:06 +00:00
Roan Kattouw
b3a3886752 Remove obsolete TODO comment 2010-10-07 17:56:43 +00:00
Roan Kattouw
acb2d77b4c Remove $wgUseDataURLs as promised by the comment in DefaultSettings.php . Data URL embedding is now always used. 2010-10-07 17:48:46 +00:00
Roan Kattouw
1b8d414cd4 Fix spelling in comment 2010-10-07 17:41:58 +00:00
Max Semenik
7ee4dc80d2 Whitespace consistency 2010-10-07 17:13:24 +00:00
Max Semenik
68b39fbd23 Revert r74273 per CR: this patch is not needed because our SQL conversion magic handles the MySQL version just fine, and I've tweaked it in r74428 to look nicer 2010-10-07 16:20:20 +00:00
Max Semenik
a426ec56c0 Support conversion of floating-point MySQL types in DatabaseSqlite::sourceStream() 2010-10-07 16:13:54 +00:00
Trevor Parscal
3326188eca Created mediawiki.views.history and moved init functionality from mediawiki.legacy.history to it. 2010-10-06 21:37:51 +00:00
Sam Reed
550271e806 Explicit class variable definition
Parameter hints
2010-10-06 21:18:55 +00:00
Sam Reed
56f6d2975f Followup r71831, User::newFromName, not newFromText 2010-10-06 21:16:28 +00:00
Trevor Parscal
8f7d318998 * Moved search/IE7 specific CSS rule into search.css with a CSS hack, which is now part of mediawiki.legacy.search, reducing the number of requests for IE7 users by 1
* Added mediawiki.specials.search, which will eventually replace mediawiki.legacy.search
* Removed javascript injections in the body which were focusing the search box on load
* Added emulation for HTML5 autofocus attribute on the search page, this may be useful elsewhere and should be considered for use globally
2010-10-06 20:42:08 +00:00
Trevor Parscal
a5010f97d9 Removed CSS file/rule which was added to fix a bug it never actually fixed. More investigation needs to be put into bug #19334 2010-10-06 20:37:34 +00:00
Raimond Spekking
7f8bbb54f3 Localisation updates for core and extension messages from translatewiki.net (2010-10-06 19:11:00 UTC) 2010-10-06 19:31:45 +00:00
Trevor Parscal
bc7172ada8 Improved on r74282 and r74333 in response to CR comments. 2010-10-06 19:05:59 +00:00
Max Semenik
39207fd633 New-installer: removed an ugly and unneeded warning, there's nothing special about adding full-text support 2010-10-06 16:31:50 +00:00
Platonides
69e9f47953 Fix (marking as incomplete) the test ApiWatchTest::testGetRollbackToken for
Failed asserting that an array has the key <string:pageid>

when there's no [[Main Page]] (eg. it was installed in a different language).
2010-10-06 16:29:18 +00:00
Sam Reed
56fd1d2960 If Main page is missing for testGetRollbackToken, mark as imcomplete (bloody unit tests) 2010-10-06 16:00:54 +00:00
Chad Horohoe
5e57886317 Tweak INSTALL to be more accurate with new-installer. Will do UPGRADE later 2010-10-06 14:02:23 +00:00
Trevor Parscal
8467176cca Moved the HTML5 placeholder attribute emulation in ext.vector.simpleSearch into it's own jQuery plugin called jquery.placeholder. 2010-10-05 23:24:56 +00:00
Trevor Parscal
a48858382a Fixed jQuery bug/enahnced jQuery to not blindly convert anything that's not a string to an integer and append 'px', resulting in values like "nullpx" and "NaNpx" which would cause errors in Internet Explorer. Now we are using ( parseInt( size ) || 0 ) + "px" so that if size is null or NaN it will be converted to 0. I've also passed this upstream (http://dev.jquery.com/ticket/7116) 2010-10-05 21:51:24 +00:00
Trevor Parscal
19e0c2b6ac * Fixed mistake made in r74271 where some functions were moved from core jquery.wikiEditor into jquery.wikiEditor.iframe, causing errors for textarea mode. These changes properly split the functions, allowing the iframe to override the textarea functions, and using $.client to only execute them on IE. (tested in IE7)
* Also fixed IE bug, where "delete window.myThing;" fails but "delete myThing;" succeeds.
2010-10-05 20:54:38 +00:00
Raimond Spekking
fdd9a1fc21 Localisation updates for core and extension messages from translatewiki.net (2010-10-05 18:38:00 UTC) 2010-10-05 18:54:47 +00:00
Neil Kandalgaonkar
fa03d5d402 removing file I used to test commit access 2010-10-05 18:35:02 +00:00
Neil Kandalgaonkar
01b6813f48 testing commit access 2010-10-05 18:34:39 +00:00
Brion Vibber
2f360ee0f9 Revert r74286, r74287 -- broke parserTests completely; mixed lots of formatting and code cleanup in with functional changes making it impossible to review cleanly. 2010-10-05 15:10:14 +00:00
Greg Sabino Mullane
8ba8c11f1e Remove parserTests.inc checks, as testing is now done quite differently. 2010-10-05 15:00:19 +00:00
Greg Sabino Mullane
b986a12270 Make the watchlist query ordering consistent across DBs. 2010-10-05 13:36:05 +00:00
Mark A. Hershberger
a828027890 (second commit to get all files.)
= BacklinkCache.php =
* BacklinkCache class
** Set a few otherwise unset varables ($wgContLang & $wgMemc in
   BacklinkCache)
= testHelpers.inc =
* TectRecorder class
** TestRecorder::record() accept and use a recorder object
** change TestFileIterator::setParser use a MediaWikiParserTest instead
   of ParserTest
= parserTest.inc =
* ParserTest class
** Make $ParserTest->regex and $ParsaerTest->savedGlobals member
   variables available to stop warnings.
** Force ParserTest::$showProgress and $showFailure to false
** Set ParserTest::$uploadDir on time
** Move ParserTest::chomp() and addArticle() to bootstrap for
   MediaWikiTestSetup.
** Update ParserTest::runTest so that Success and Failure are reported
   via reporter->showsTestResult() or ParserTestSuiteBackend::show*()
   as needed.
** Set $ParserTest->uploadDir with setupUploadDir()
** Change ParserTest->setupGlobals() so that $wgDBprefix doesn't get
   to set to the “parsertest_” bits.
** Sprinkle $this->teardownGlobals() at exit points in
  ParserTest->teardownDatabase()
= bootstrap.php =
* MediaWikiTestSetup class
** Make member variables MediaWikiTestSetup::$suite,
  MediaW* Make member variables MediaWikiTestSetup::$suite,
  MediaWikiTestSetup::$regex, MediaWikiTestSetup::$runDisabled
  available.
* Setup a constructor MediaWikiTestSetup that accepts an optional
  PHPUnit_Framework_TestSuite so they can use PHPUnit.
* Change MediaWikiParserTest so that it is derived from
  MediaWikiTestSetup instead of PHPUnit_Framework_TestSuite
* Make MediaWikiParserTest create a PHPUnit_Framework_TestSuite for
  the parser tests and pass it to the new parent (MediaWikiTestSetup)
  as the PHPUnit testsuite.
* Replace MediaWikiParserTest->run() with MediaWikiParserTest::suite()
  so that the tests can be loaded into a suite and then run with
  PHPUnit's test runner.
= ParserHelpers.php =
* ParserUnitTest class
** Force run() $backend to use ParserTestSuiteBackend instead of
   trying to get the  backend from the suite member.
** Use ParserTest::runTest() instead of
  ParserikiTestSetup::$regex, MediaWikiTestSetup::$runDisabled
  available.
** Setup a constructor MediaWikiTestSetup that accepts an optional
   PHPUnit_Framework_TestSuite so they can use PHPUnit.
** Change MediaWikiParserTest so that it is derived from
   MediaWikiTestSetup instead of PHPUnit_Framework_TestSuite
** Make MediaWikiParserTest create a PHPUnit_Framework_TestSuite for
   the parser tests and pass it to the new parent (MediaWikiTestSetup)
   as the PHPUnit testsuite.
** Replace MediaWikiParserTest->run() with MediaWikiParserTest::suite()
   so that the tests can be loaded into a suite and then run with
   PHPUnit's test runner.
= ParserHelpers.php =
* ParserUnitTest class
** Force run() $backend to use ParserTestSuiteBackend instead of
   trying to get the  backend from the suite member.
** Use ParserTest::runTest() instead of
  ParserTestSuiteBackend::runTest()
* ParserTestSuiteBackend class
** extends PHPUnit_FrameWork_TestSuite instead of ParserTest
** Add member variables  $recorder, $term, and $usePHPUnit
** Add a constructor that determines if PHPUnit is usewd.
** Add a method showTestResult() that can be used to show success or
   failure
** Change showSucess and showFailure() to be static and use identical
   arguments and only use PHPUnit_Framework_Assert::assertEquals
   when PHPUnit is in use.
= SearchEngineTest.php =
** Fix path in require to bootstrap.php
2010-10-05 03:51:49 +00:00
Mark A. Hershberger
9eb3359a5e = BacklinkCache.php =
* BacklinkCache class
** Set a few otherwise unset varables ($wgContLang & $wgMemc in
   BacklinkCache)
= testHelpers.inc =
* TectRecorder class
** TestRecorder::record() accept and use a recorder object
** change TestFileIterator::setParser use a MediaWikiParserTest instead
   of ParserTest
= parserTest.inc =
* ParserTest class
** Make $ParserTest->regex and $ParsaerTest->savedGlobals member
   variables available to stop warnings.
** Force ParserTest::$showProgress and $showFailure to false
** Set ParserTest::$uploadDir on time
** Move ParserTest::chomp() and addArticle() to bootstrap for
   MediaWikiTestSetup.
** Update ParserTest::runTest so that Success and Failure are reported
   via reporter->showsTestResult() or ParserTestSuiteBackend::show*()
   as needed.
** Set $ParserTest->uploadDir with setupUploadDir()
** Change ParserTest->setupGlobals() so that $wgDBprefix doesn't get
   to set to the “parsertest_” bits.
** Sprinkle $this->teardownGlobals() at exit points in
  ParserTest->teardownDatabase()
= bootstrap.php =
* MediaWikiTestSetup class
** Make member variables MediaWikiTestSetup::$suite,
  MediaW* Make member variables MediaWikiTestSetup::$suite,
  MediaWikiTestSetup::$regex, MediaWikiTestSetup::$runDisabled
  available.
* Setup a constructor MediaWikiTestSetup that accepts an optional
  PHPUnit_Framework_TestSuite so they can use PHPUnit.
* Change MediaWikiParserTest so that it is derived from
  MediaWikiTestSetup instead of PHPUnit_Framework_TestSuite
* Make MediaWikiParserTest create a PHPUnit_Framework_TestSuite for
  the parser tests and pass it to the new parent (MediaWikiTestSetup)
  as the PHPUnit testsuite.
* Replace MediaWikiParserTest->run() with MediaWikiParserTest::suite()
  so that the tests can be loaded into a suite and then run with
  PHPUnit's test runner.
= ParserHelpers.php =
* ParserUnitTest class
** Force run() $backend to use ParserTestSuiteBackend instead of
   trying to get the  backend from the suite member.
** Use ParserTest::runTest() instead of
  ParserikiTestSetup::$regex, MediaWikiTestSetup::$runDisabled
  available.
** Setup a constructor MediaWikiTestSetup that accepts an optional
   PHPUnit_Framework_TestSuite so they can use PHPUnit.
** Change MediaWikiParserTest so that it is derived from
   MediaWikiTestSetup instead of PHPUnit_Framework_TestSuite
** Make MediaWikiParserTest create a PHPUnit_Framework_TestSuite for
   the parser tests and pass it to the new parent (MediaWikiTestSetup)
   as the PHPUnit testsuite.
** Replace MediaWikiParserTest->run() with MediaWikiParserTest::suite()
   so that the tests can be loaded into a suite and then run with
   PHPUnit's test runner.
= ParserHelpers.php =
* ParserUnitTest class
** Force run() $backend to use ParserTestSuiteBackend instead of
   trying to get the  backend from the suite member.
** Use ParserTest::runTest() instead of
  ParserTestSuiteBackend::runTest()
* ParserTestSuiteBackend class
** extends PHPUnit_FrameWork_TestSuite instead of ParserTest
** Add member variables  $recorder, $term, and $usePHPUnit
** Add a constructor that determines if PHPUnit is usewd.
** Add a method showTestResult() that can be used to show success or
   failure
** Change showSucess and showFailure() to be static and use identical
   arguments and only use PHPUnit_Framework_Assert::assertEquals
   when PHPUnit is in use.
= SearchEngineTest.php =
** Fix path in require to bootstrap.php
2010-10-05 03:47:08 +00:00
Sam Reed
d4b4d437e5 Tweak/refactoring around of tests
Mark 3 as incomplete (ie broken)
2010-10-04 23:29:05 +00:00
Trevor Parscal
2896d1c83c Moved some of the functionality from mediawiki.legacy.prefs into mediawiki.specials.preferences. 2010-10-04 22:16:18 +00:00
Sam Reed
519173c0e4 Followup r74234 flip parameters 2010-10-04 21:18:38 +00:00
Ryan Kaldari
839d8f2fc0 adding close window button for use with all skins 2010-10-04 21:07:21 +00:00
Antoine Musso
575711fde2 Profiling table (optional) for SQLite 2010-10-04 20:55:14 +00:00
Raimond Spekking
0fc5fbb486 Localisation updates for core and extension messages from translatewiki.net (2010-10-04 18:48:00 UTC) 2010-10-04 19:02:27 +00:00
Platonides
85fc6845f3 Fix issues after r54561 which avoided use of the 7z wrapper.
popen() doesn't like two-letter modes but the approach checked for it at 
too high level, used as mode the letter t, not r, which was an invalid 
option for SevenZipStream, and is still an invalid argument for popen.
2010-10-04 15:04:41 +00:00