Last modified: 2013-04-08 11:02:12 UTC
I was trying to create a suite of tests for a script used on Portuguese Wikisource and found the mediawiki.util.test.js test suite in SVN: http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/resources/mediawiki.util/mediawiki.util.test.js?annotate=87360 It saved me a lot of work! =) (thanks Krinkle =D ) Nonetheless, instead of just copying all the code and then removing the tests I don't need to add my own JS tests (see the URL above), it would be better to be able to import the code (maybe as a resource loader module?) and then just implement my tests. I think this could be useful to other local JS developers as well. Would this be feasible? PS: This seems to be related to bug 26908.
Besides, it could be made more localizable ;-)
Localization is certainly something that should be done in-core and not from the client-side. I'll get on that right away. I'm expanding the summary to include "extendible" as wel. I can imagine extensions would like to add tests as well. So they should probably (also) be feeded through php somehow. However, as you pointed out, bug 26908 will likely replace this test suite with one of the extisting frameworks / libraries / plugins out there. Which, when added to SVN, will be useable from anywhere. -- Krinkle PS: The script revision you copied to SVN needs wgAvailableSkins, just FYI: Since that variable doesn't exist yet in the version of the software that Wikimedia runs, the skin-navigator doesn't work. You can see here: http://translatewiki.net/w/i.php?title=Special:BlankPage&action=mwutiltest&debug=true what it will look like.
Marking FIXED. This is redundant now with bug 26908 and bug 28915 fixed.