lhc/web/wiklou.git
19 years agoExtensions for testing and debugging
Tim Starling [Sun, 26 Sep 2004 06:45:30 +0000 (06:45 +0000)]
Extensions for testing and debugging

19 years agoStart on compatibility with PHPTAL 1.0 (on PHP5).
Brion Vibber [Sun, 26 Sep 2004 01:56:43 +0000 (01:56 +0000)]
Start on compatibility with PHPTAL 1.0 (on PHP5).
Currently requires that PHPTAL 1.0.0d2 be separately installed and hacked up a little, and $wgUsePHPTal manually enabled.

19 years agosome more UI related fix
Zheng Zhu [Sun, 26 Sep 2004 01:50:26 +0000 (01:50 +0000)]
some more UI related fix

19 years agoFix fallback message checks.
Brion Vibber [Sun, 26 Sep 2004 00:02:28 +0000 (00:02 +0000)]
Fix fallback message checks.

19 years agofix fallback in wfMsgReal() as well
Zheng Zhu [Sun, 26 Sep 2004 00:00:52 +0000 (00:00 +0000)]
fix fallback in wfMsgReal() as well

19 years agoFix fallback for missing messages
Brion Vibber [Sat, 25 Sep 2004 23:54:42 +0000 (23:54 +0000)]
Fix fallback for missing messages

19 years agoFinish fixing the default language.
Brion Vibber [Sat, 25 Sep 2004 21:57:27 +0000 (21:57 +0000)]
Finish fixing the default language.

19 years agoGet CVS to shut up about the build files & executable
Brion Vibber [Sat, 25 Sep 2004 21:49:04 +0000 (21:49 +0000)]
Get CVS to shut up about the build files & executable

19 years agoWork with $wgUseTidy again, and add more tests (we now have 100!)
Wil Mahan [Sat, 25 Sep 2004 21:20:32 +0000 (21:20 +0000)]
Work with $wgUseTidy again, and add more tests (we now have 100!)

19 years agoDon't strip leading ':' in maybeDoSubpageLink() so that
Wil Mahan [Sat, 25 Sep 2004 20:35:38 +0000 (20:35 +0000)]
Don't strip leading ':' in maybeDoSubpageLink() so that
{{:foo}} works for including from main namespace.

19 years agoFix bug 561: {{/Subpage}} acts like {{Template:/Subpage}}, by
Wil Mahan [Sat, 25 Sep 2004 20:13:14 +0000 (20:13 +0000)]
Fix bug 561: {{/Subpage}} acts like {{Template:/Subpage}}, by
breaking out a maybeDoSubpageLink() function and using it when
including a template.

19 years agoMove tidy call from Parser to OutputPage so that it happens
Wil Mahan [Sat, 25 Sep 2004 18:22:21 +0000 (18:22 +0000)]
Move tidy call from Parser to OutputPage so that it happens
after link placeholder replacement.

19 years agoa couple of extra functions, useful for debugging
Tim Starling [Sat, 25 Sep 2004 16:54:31 +0000 (16:54 +0000)]
a couple of extra functions, useful for debugging

19 years agoMore debugging info, better hashing function - crc32() goes negative in live PHP!
Tim Starling [Sat, 25 Sep 2004 16:50:27 +0000 (16:50 +0000)]
More debugging info, better hashing function - crc32() goes negative in live PHP!

19 years agoUndo some of my changes to sections from templates; I think they
Wil Mahan [Sat, 25 Sep 2004 16:06:10 +0000 (16:06 +0000)]
Undo some of my changes to sections from templates; I think they
were wrong

19 years agoSecond parameter to wfMsg(nogomatch)
Tim Starling [Sat, 25 Sep 2004 14:32:19 +0000 (14:32 +0000)]
Second parameter to wfMsg(nogomatch)

19 years agovarious modifications found lying around in the live copy. Some of these should proba...
Tim Starling [Sat, 25 Sep 2004 14:02:04 +0000 (14:02 +0000)]
various modifications found lying around in the live copy. Some of these should probably be incorporated into the main development branches

19 years agoTurning validation back off by default. I'm assuming this was checked in by mistake.
Brion Vibber [Sat, 25 Sep 2004 10:50:01 +0000 (10:50 +0000)]
Turning validation back off by default. I'm assuming this was checked in by mistake.

19 years agoAvoid gratuitously breaking configurations: continue to use
Brion Vibber [Sat, 25 Sep 2004 10:38:34 +0000 (10:38 +0000)]
Avoid gratuitously breaking configurations: continue to use
$wgLanguageCode in LocalSettings.php, and pass that value on
to $wgContLanguageCode internally.

19 years agoAdjust some spacing
Brion Vibber [Sat, 25 Sep 2004 10:31:42 +0000 (10:31 +0000)]
Adjust some spacing

19 years agoChange LanguageEn to be UTF-8 by default. This fixes the problem with
Brion Vibber [Sat, 25 Sep 2004 10:08:42 +0000 (10:08 +0000)]
Change LanguageEn to be UTF-8 by default. This fixes the problem with
language selection destroying non-ASCII characters when English was selected.

19 years agodisallow empty searches
River Tarnell [Sat, 25 Sep 2004 09:57:03 +0000 (09:57 +0000)]
disallow empty searches

19 years agoSet wgUploadPath for tests so we don't all have to be using Wil's filesystem layout. ;)
Brion Vibber [Sat, 25 Sep 2004 09:49:04 +0000 (09:49 +0000)]
Set wgUploadPath for tests so we don't all have to be using Wil's filesystem layout. ;)

19 years agoAvoid warning when incrementing non-existing element of array
Jens Frank [Sat, 25 Sep 2004 08:32:53 +0000 (08:32 +0000)]
Avoid warning when incrementing non-existing element of array

19 years agoNew tests for sections and various bugs
Wil Mahan [Sat, 25 Sep 2004 05:58:49 +0000 (05:58 +0000)]
New tests for sections and various bugs

19 years agoAdd a "--regex" option to limit which tests are run; replace
Wil Mahan [Sat, 25 Sep 2004 05:58:05 +0000 (05:58 +0000)]
Add a "--regex" option to limit which tests are run; replace
"!!disabled" with "!!option ... disabled"

19 years agoFix two parser bugs: bug 41 and bug 529. For the former, I replaced
Wil Mahan [Sat, 25 Sep 2004 05:16:38 +0000 (05:16 +0000)]
Fix two parser bugs: bug 41 and bug 529. For the former, I replaced
a broken check for '{{{' in braceSubstitution(). For the latter,
I undid part of JeLuF's fix to bug 523 and changed
braceSubstitution() to add a newline '{|', '#', '*', ';', or ':'
come at the beginning of a template and a newline isn't already
present. Also, minor cleanups to the template section code.

19 years agofirst attempt to support multiple language variants in the MediaWiki: namespace.
Zheng Zhu [Sat, 25 Sep 2004 04:15:47 +0000 (04:15 +0000)]
first attempt to support multiple language variants in the MediaWiki: namespace.

19 years agoremoved caching of UI messages; it does not make sense, after all.
Zheng Zhu [Sat, 25 Sep 2004 02:23:04 +0000 (02:23 +0000)]
removed caching of UI messages; it does not make sense, after all.

19 years agoAdd an option for setting the title; add test for interlanguage links;
Wil Mahan [Fri, 24 Sep 2004 21:49:56 +0000 (21:49 +0000)]
Add an option for setting the title; add test for interlanguage links;
remove dupliate test

19 years agoAdd tests for subpages (+ an option to enable them), images,
Wil Mahan [Fri, 24 Sep 2004 20:56:45 +0000 (20:56 +0000)]
Add tests for subpages (+ an option to enable them), images,
more template cases, definition lists/indentation, and
preformatted text.

19 years agoSimplified the LanguageZh class
Zheng Zhu [Fri, 24 Sep 2004 19:04:28 +0000 (19:04 +0000)]
Simplified the LanguageZh class

19 years agoAdded a simple syntax check in the conversion code
Zheng Zhu [Fri, 24 Sep 2004 19:02:39 +0000 (19:02 +0000)]
Added a simple syntax check in the conversion code

19 years agofixed formating (tab instead of space)
Zheng Zhu [Fri, 24 Sep 2004 18:37:33 +0000 (18:37 +0000)]
fixed formating (tab instead of space)

19 years agoChange example noted by Brion--I think the current output is
Wil Mahan [Fri, 24 Sep 2004 18:36:17 +0000 (18:36 +0000)]
Change example noted by Brion--I think the current output is
arguably correct, albeit not very useful. At the moment 71 of 71
tests pass!

19 years agoReplaced call to deprecated Namespace::getSpecial(); update comment on autoConvert()
Zheng Zhu [Fri, 24 Sep 2004 18:31:16 +0000 (18:31 +0000)]
Replaced call to deprecated  Namespace::getSpecial(); update comment on autoConvert()

19 years agoAnother attempt at fixing bug 2. Call replaceInternalLinks() before
Wil Mahan [Fri, 24 Sep 2004 18:29:01 +0000 (18:29 +0000)]
Another attempt at fixing bug 2. Call replaceInternalLinks() before
replaceExternalLinks(). Use placeholders for interwiki links, as with
other internal links, to avoid parsing them as external. Disallow
links to pages containing a URL protocol followed by a colon.
Unrelated: output a warning comment when a template loop is detected.

19 years agoAttempt to fix links not fixed in the wgLang->wgContLang transition
Zheng Zhu [Fri, 24 Sep 2004 18:24:01 +0000 (18:24 +0000)]
Attempt to fix links not fixed in the wgLang->wgContLang transition

19 years agoremoving Windows line endings
Erik Moeller [Fri, 24 Sep 2004 17:31:02 +0000 (17:31 +0000)]
removing Windows line endings
fixing MySQL code so it works under 4.0/Linux

19 years agoThird batch of files modified to replace selected wgLang with wgContLang
Zheng Zhu [Fri, 24 Sep 2004 16:45:31 +0000 (16:45 +0000)]
Third batch of files modified to replace selected wgLang with wgContLang

19 years agoSecond batch of files modified to replace selected wgLang with wgContLang
Zheng Zhu [Fri, 24 Sep 2004 16:24:43 +0000 (16:24 +0000)]
Second batch of files modified to replace selected wgLang with wgContLang

19 years agomoved user toggles into wgAllMessages
Zheng Zhu [Fri, 24 Sep 2004 14:59:44 +0000 (14:59 +0000)]
moved user toggles into wgAllMessages

19 years agoWiki database system
Magnus Manske [Fri, 24 Sep 2004 14:49:22 +0000 (14:49 +0000)]
Wiki database system

19 years agoFirst batch of files modified to switch wgLang to wgContLang.
Zheng Zhu [Fri, 24 Sep 2004 13:14:52 +0000 (13:14 +0000)]
First batch of files modified to switch wgLang to wgContLang.

19 years agoSorry I forgot to commit the fix...
Zheng Zhu [Fri, 24 Sep 2004 13:10:38 +0000 (13:10 +0000)]
Sorry I forgot to commit the fix...

19 years agohotfix for undefined variable
Magnus Manske [Fri, 24 Sep 2004 10:02:48 +0000 (10:02 +0000)]
hotfix for undefined variable

19 years agoAdd a pretty PASSED! or FAILED! to the final summary line.
Brion Vibber [Fri, 24 Sep 2004 05:05:53 +0000 (05:05 +0000)]
Add a pretty PASSED! or FAILED! to the final summary line.

19 years agoAdd blurb at top; enable template as link source test now that it
Wil Mahan [Fri, 24 Sep 2004 04:24:01 +0000 (04:24 +0000)]
Add blurb at top; enable template as link source test now that it
works; be more careful with some trailing newlines; add four table
tests, a template infinite loop test, etc.

19 years agoBe a bit more careful about trailing spaces; don't colorize output
Wil Mahan [Fri, 24 Sep 2004 04:19:57 +0000 (04:19 +0000)]
Be a bit more careful about trailing spaces; don't colorize output
when stdout is not at terminal; add a reminder to check for
duplicate/invalid test articles.

19 years agoSet default value for instead of
Zheng Zhu [Fri, 24 Sep 2004 03:19:04 +0000 (03:19 +0000)]
Set default value for  instead of

19 years agoFix bug in pre-save transform caught by tester
Wil Mahan [Fri, 24 Sep 2004 02:38:20 +0000 (02:38 +0000)]
Fix bug in pre-save transform caught by tester

19 years agoupdated warning about the UI switching code.
Zheng Zhu [Fri, 24 Sep 2004 00:49:00 +0000 (00:49 +0000)]
updated warning about the UI switching code.

19 years agoChanged installation code so that wgContLanguageCode is set, replacing wgLanguageCode.
Zheng Zhu [Fri, 24 Sep 2004 00:34:13 +0000 (00:34 +0000)]
Changed installation code so that wgContLanguageCode is set, replacing wgLanguageCode.

19 years agoSetting default user option using the content language rather than the UI language
Zheng Zhu [Fri, 24 Sep 2004 00:10:34 +0000 (00:10 +0000)]
Setting default user option using the content language rather than the UI language

19 years agopassing the language object in as parameter when initializing the message cache
Zheng Zhu [Fri, 24 Sep 2004 00:09:42 +0000 (00:09 +0000)]
passing the language object in as parameter when initializing the message cache

19 years agoBreak temporary table creation out to setupDatabase() function.
Brion Vibber [Thu, 23 Sep 2004 22:23:28 +0000 (22:23 +0000)]
Break temporary table creation out to setupDatabase() function.
Tweak so that the temporary prefix will actually be used.

19 years agoTests for templates, pre-save transform, message transform.
Wil Mahan [Thu, 23 Sep 2004 21:57:58 +0000 (21:57 +0000)]
Tests for templates, pre-save transform, message transform.

19 years agoTwo changes to parserTest:
Wil Mahan [Thu, 23 Sep 2004 21:52:09 +0000 (21:52 +0000)]
Two changes to parserTest:
1) Use 'parsertest' database prefix and temporary tables to allow
creating articles for testing without modifying the normal DB.
Right now this is ugly because the new tables have to be created by
hand.
2) Allow tests to specify articles using !!article ... !!text
... !!endarticle syntax. This is useful for templates, categories,
and I hope more tests.

19 years agoVerify known image types on upload.
Brion Vibber [Thu, 23 Sep 2004 20:57:35 +0000 (20:57 +0000)]
Verify known image types on upload.

19 years agoMore consistent method for immediate logout, means that the IP rather than the userna...
Tim Starling [Thu, 23 Sep 2004 15:43:25 +0000 (15:43 +0000)]
More consistent method for immediate logout, means that the IP rather than the username is displayed at the top of the logout confirmation page.

19 years agoallow specifying alternative image upload base url (like external servers)
Domas Mituzas [Thu, 23 Sep 2004 12:15:42 +0000 (12:15 +0000)]
allow specifying alternative image upload base url (like external servers)

19 years agoAdd phpdoc comments
Brion Vibber [Thu, 23 Sep 2004 08:25:30 +0000 (08:25 +0000)]
Add phpdoc comments

19 years agoUse '--parseprivate on' option on phpdoc to include the private members/
Brion Vibber [Thu, 23 Sep 2004 08:23:04 +0000 (08:23 +0000)]
Use '--parseprivate on' option on phpdoc to include the private members/
methods in the docs. They are marked with a distinct icon, but unfortunately
are sorted in among the public items which is not ideal of legible docs.

19 years agoIgnore LocalSettings.php,AdminSettings.php
Brion Vibber [Thu, 23 Sep 2004 07:38:24 +0000 (07:38 +0000)]
Ignore LocalSettings.php,AdminSettings.php

19 years agoMagic links, etc.
Wil Mahan [Thu, 23 Sep 2004 07:36:00 +0000 (07:36 +0000)]
Magic links, etc.

19 years agoLoad up LanguageUtf8 and force to utf-8 if config was latin1
Brion Vibber [Thu, 23 Sep 2004 07:32:54 +0000 (07:32 +0000)]
Load up LanguageUtf8 and force to utf-8 if config was latin1

19 years agoAdd remotely fetched files to .cvsignore to reduce screen pollution
Brion Vibber [Thu, 23 Sep 2004 07:29:25 +0000 (07:29 +0000)]
Add remotely fetched files to .cvsignore to reduce screen pollution

19 years agoRevert previous change, which broke interwiki links.
Wil Mahan [Thu, 23 Sep 2004 07:25:02 +0000 (07:25 +0000)]
Revert previous change, which broke interwiki links.

19 years agoTest inline interwiki link
Brion Vibber [Thu, 23 Sep 2004 07:22:35 +0000 (07:22 +0000)]
Test inline interwiki link

19 years agoCall replaceExternalLinks after replaceInternalLinks. Fixes bug 2 and
Wil Mahan [Thu, 23 Sep 2004 07:16:05 +0000 (07:16 +0000)]
Call replaceExternalLinks after replaceInternalLinks. Fixes bug 2 and
a related bug.

19 years agoSince 'php parserTests.php' is too long for my lazy fingers, added a Makefile.
Brion Vibber [Thu, 23 Sep 2004 07:14:14 +0000 (07:14 +0000)]
Since 'php parserTests.php' is too long for my lazy fingers, added a Makefile.
'make test' to run the parser tests, 'make doc' to run phpdoc generation.

19 years agoChange name of output files to make the diff output a bit clearer
Brion Vibber [Thu, 23 Sep 2004 07:05:37 +0000 (07:05 +0000)]
Change name of output files to make the diff output a bit clearer

19 years agoSet language to en for tests.
Brion Vibber [Thu, 23 Sep 2004 07:04:06 +0000 (07:04 +0000)]
Set language to en for tests.

19 years agoadd $wgSitename global for testing magic variables
Wil Mahan [Thu, 23 Sep 2004 06:43:43 +0000 (06:43 +0000)]
add $wgSitename global for testing magic variables

19 years agoAdd tests for magic variables (using $wgSitename) and nonexistant templates.
Wil Mahan [Thu, 23 Sep 2004 06:41:46 +0000 (06:41 +0000)]
Add tests for magic variables (using $wgSitename) and nonexistant templates.
Tests for existing templates will be a bit more difficult. ;)

19 years agoRemove a space for parser checker consistency
Wil Mahan [Thu, 23 Sep 2004 06:29:46 +0000 (06:29 +0000)]
Remove a space for parser checker consistency

19 years agoadd two more block-level tests
Wil Mahan [Thu, 23 Sep 2004 06:13:16 +0000 (06:13 +0000)]
add two more block-level tests

19 years agoSplit up internal links test cases, add a couple more
Wil Mahan [Thu, 23 Sep 2004 05:59:27 +0000 (05:59 +0000)]
Split up internal links test cases, add a couple more

19 years agoAdd --quick option to suppress display of diffs.
Brion Vibber [Thu, 23 Sep 2004 05:45:17 +0000 (05:45 +0000)]
Add --quick option to suppress display of diffs.

19 years agoAdd color to the output; assumes a more or less ANSI-flavored terminal.
Brion Vibber [Thu, 23 Sep 2004 05:40:10 +0000 (05:40 +0000)]
Add color to the output; assumes a more or less ANSI-flavored terminal.
Won't display color on Windows by default; use --color or --color=no to override.

19 years agoFix and enable all internal links test cases, including two bugs
Wil Mahan [Thu, 23 Sep 2004 05:12:47 +0000 (05:12 +0000)]
Fix and enable all internal links test cases, including two bugs

19 years agoAdd regression test case for bug 554
Brion Vibber [Thu, 23 Sep 2004 05:08:20 +0000 (05:08 +0000)]
Add regression test case for bug 554

19 years agoSeparate out the external links tests
Brion Vibber [Thu, 23 Sep 2004 02:31:18 +0000 (02:31 +0000)]
Separate out the external links tests

19 years agoAdd a newline to the diff temp files to remove the annoying message about it
Brion Vibber [Thu, 23 Sep 2004 02:30:56 +0000 (02:30 +0000)]
Add a newline to the diff temp files to remove the annoying message about it

19 years agoDon't produce a title attribute for external links when the link text is
Brion Vibber [Thu, 23 Sep 2004 02:25:41 +0000 (02:25 +0000)]
Don't produce a title attribute for external links when the link text is
the same as the URL. (We already don't produce a print expansion for these.)

19 years agoCleaning up checkin conflict: remove Wil's parserTransform() function as
Brion Vibber [Thu, 23 Sep 2004 00:45:49 +0000 (00:45 +0000)]
Cleaning up checkin conflict: remove Wil's parserTransform() function as
this is superceded by setting the globals to a known initial state.

19 years agoFix test to match change to Skin.php
Brion Vibber [Thu, 23 Sep 2004 00:39:30 +0000 (00:39 +0000)]
Fix test to match change to Skin.php

19 years agoTweak tests back into shape
Brion Vibber [Thu, 23 Sep 2004 00:38:18 +0000 (00:38 +0000)]
Tweak tests back into shape

19 years agoRemove a single space that breaks a parser test
Wil Mahan [Thu, 23 Sep 2004 00:37:10 +0000 (00:37 +0000)]
Remove a single space that breaks a parser test

19 years agoParser test improvements:
Brion Vibber [Thu, 23 Sep 2004 00:33:07 +0000 (00:33 +0000)]
Parser test improvements:
* Show a diff of the expected and actual output rather than dumping large swaths of HTML
* Set exit code depending on success
* Standardize some global settings such as the URL paths which affect output
* Added copyright/GPL notice to test script code

19 years agomake some more tests work
Wil Mahan [Thu, 23 Sep 2004 00:31:22 +0000 (00:31 +0000)]
make some more tests work

19 years agoallow simple variables in expected test results; use tidy on expected result when
Wil Mahan [Thu, 23 Sep 2004 00:30:28 +0000 (00:30 +0000)]
allow simple variables in expected test results; use tidy on expected result when
$wgUseTidy is enabled, which makes it possible to disregard cosmetic formatting
discrepancies

19 years agofix php notices about call-time by reference
Antoine Musso [Wed, 22 Sep 2004 22:03:24 +0000 (22:03 +0000)]
fix php notices about call-time by reference

19 years agoUse OutputPage to replace link placeholders; add links, quotes tests
Wil Mahan [Wed, 22 Sep 2004 21:54:19 +0000 (21:54 +0000)]
Use OutputPage to replace link placeholders; add links, quotes tests
(not working at the moment)

19 years agoRemove the comment check I added (wasn't necessary); add a way do disable tests.
Wil Mahan [Wed, 22 Sep 2004 21:22:51 +0000 (21:22 +0000)]
Remove the comment check I added (wasn't necessary); add a way do disable tests.
Add nowiki, comment, and external links tests (some disabled at the moment).

19 years agoDon't unstrip() in internalParse(), because it's already done in parse().
Wil Mahan [Wed, 22 Sep 2004 20:04:11 +0000 (20:04 +0000)]
Don't unstrip() in internalParse(), because it's already done in parse().
This fixes <nowiki>*list item</nowiki>, which was caught thanks to the
parser tester. :)

19 years agoAllow comments beginning with '#' between sections, for more detailed
Wil Mahan [Wed, 22 Sep 2004 19:46:51 +0000 (19:46 +0000)]
Allow comments beginning with '#' between sections, for more detailed
descriptions of the tests.

19 years agoFixed some typos
Jens Frank [Wed, 22 Sep 2004 17:46:13 +0000 (17:46 +0000)]
Fixed some typos

19 years agoSet $fname to prevent warning in edit conflicts
Wil Mahan [Wed, 22 Sep 2004 16:20:34 +0000 (16:20 +0000)]
Set $fname to prevent warning in edit conflicts

19 years agofixed missing </select>
Zheng Zhu [Wed, 22 Sep 2004 13:04:06 +0000 (13:04 +0000)]
fixed missing </select>