X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2FparserTests.php;h=f961dd44cac6ad172493ba8b1a3215d0de0afa6e;hb=3a922d36d8741e34d9ce46cb601e1f356dcf844d;hp=b3cb89ae02010bef24a6e169782aba5aa23f39c8;hpb=fc1ca75323b5f424a9f8d28d42d85a311ed2f721;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parserTests.php b/tests/parserTests.php index b3cb89ae02..f961dd44ca 100644 --- a/tests/parserTests.php +++ b/tests/parserTests.php @@ -27,8 +27,8 @@ define( 'MW_PARSER_TEST', true ); $options = [ 'quick', 'color', 'quiet', 'help', 'show-output', - 'record', 'run-disabled', 'run-parsoid' ]; -$optionsWithArgs = [ 'regex', 'filter', 'seed', 'setversion', 'file' ]; + 'record', 'run-disabled', 'run-parsoid', 'dwdiff', 'mark-ws' ]; +$optionsWithArgs = [ 'regex', 'filter', 'seed', 'setversion', 'file', 'norm' ]; require_once __DIR__ . '/../maintenance/commandLine.inc'; require_once __DIR__ . '/TestsAutoLoader.php'; @@ -54,9 +54,18 @@ Options: --keep-uploads Re-use the same upload directory for each test, don't delete it --fuzz Do a fuzz test instead of a normal test --seed Start the fuzz test from the specified seed - --help Show this help message --run-disabled run disabled tests --run-parsoid run parsoid tests (normally disabled) + --dwdiff Use dwdiff to display diff output + --mark-ws Mark whitespace in diffs by replacing it with symbols + --norm= Apply a comma-separated list of normalization functions to + both the expected and actual output in order to resolve + irrelevant differences. The accepted normalization functions + are: removeTbody to remove tags; and trimWhitespace + to trim whitespace from the start and end of text nodes. + --use-tidy-config Use the wiki's Tidy configuration instead of known-good + defaults. + --help Show this help message ENDS; exit( 0 );