wiki.techinc.nl/tests/phpunit/includes/content
Kunal Mehta ad9f14d662 Support redirects in JavaScriptContent
When a JavaScript page is moved, a "redirect" in the form of
mw.loader.load(...) will be left behind, so any other
JavaScript loading the page that way will still work, albeit
with an extra HTTP request.

This also implements Content::getRedirectTarget(), so redirects
are marked properly in the database, and users viewing them
are redirected properly. A magic "/* #REDIRECT */" comment
must be in front of the mw.loader.load call. This is done so
that pages which currently are just one mw.loader.load call
aren't turned into redirects.

Bug: 71200
Bug: 33973
Change-Id: I10fdff087a901da56fad64531f0e382f90ebcf37
2015-07-20 15:36:49 +00:00
..
ContentHandlerTest.php Merge "content: Recognise .json as JsonContent in User and MediaWiki namespace" 2015-06-03 16:25:09 +00:00
CssContentTest.php Support redirects in JavaScriptContent 2015-07-20 15:36:49 +00:00
JavaScriptContentHandlerTest.php Support redirects in JavaScriptContent 2015-07-20 15:36:49 +00:00
JavaScriptContentTest.php Support redirects in JavaScriptContent 2015-07-20 15:36:49 +00:00
JsonContentTest.php Fix whitespace issues around parentheses 2015-06-16 22:14:02 +03:00
TextContentHandlerTest.php Add supportsDirectEditing methods to ContentHandler 2015-04-17 15:55:20 +00:00
TextContentTest.php Fix bypassing hooks in TextContentTest 2014-10-23 17:46:55 +00:00
WikitextContentHandlerTest.php Add supportsDirectEditing methods to ContentHandler 2015-04-17 15:55:20 +00:00
WikitextContentTest.php Record redirect target in ParserOptions 2014-09-18 06:19:31 +00:00