Rewrite TidySupport and add option --use-tidy-config
authorTim Starling <tstarling@wikimedia.org>
Thu, 7 Apr 2016 02:24:29 +0000 (12:24 +1000)
committerKunal Mehta <legoktm@member.fsf.org>
Tue, 12 Jul 2016 21:25:03 +0000 (14:25 -0700)
commit8a57d86ea7ec28ac12c60cde1436d688678e9340
tree71e36facc20c4a0065abcb9cedf2f37324ff05c5
parentf77036a73ad8207ed0fe26869f5d0e868accaedc
Rewrite TidySupport and add option --use-tidy-config

* Have TidySupport provide $wgTidyConfig instead of the legacy globals
* Add --use-tidy-config option to parserTests.php. This tells
  TidySupport to use the tidy configuration from LocalSettings.php
  instead of the traditional safe defaults.
* Add a way for TidySupport to disable tidy via $wgTidyConfig, using
  driver=>disabled

Change-Id: Ie76e68e2d5238d0a1aef49a1a815c0d1cd8bfdae
includes/parser/MWTidy.php
tests/parser/parserTest.inc
tests/parserTests.php
tests/phpunit/includes/parser/NewParserTest.php
tests/testHelpers.inc