diff --git a/tests/ParserTest.json b/tests/ParserTest.json index a37eaac9e..2918ca959 100644 --- a/tests/ParserTest.json +++ b/tests/ParserTest.json @@ -795,7 +795,8 @@ { "input": "\\oint_{(x,y)\\in C} x^3\\, dx + 4y^2\\, dy", "params": [], - "output": "\"{\\displaystyle" + "output": "\"{\\displaystyle", + "skipped": true }, { "input": "\\bigcap_{i=_1}^n E_i", @@ -1823,7 +1824,8 @@ { "input": "\\oint", "params": [], - "output": "\"{\\displaystyle" + "output": "\"{\\displaystyle", + "skipped": true }, { "input": "\\iint\\limits_{S}\\!\\!\\!\\!\\!\\!\\!\\!\\!\\!\\!\\subset\\!\\supset \\mathbf D \\cdot \\mathrm{d}\\mathbf A", @@ -1853,7 +1855,8 @@ { "input": "( \\nabla \\times \\bold{F} ) \\cdot {\\rm d}\\bold{S} = \\oint_{\\partial S} \\bold{F} \\cdot {\\rm d}\\boldsymbol{\\ell} ", "params": [], - "output": "\"{\\displaystyle" + "output": "\"{\\displaystyle", + "skipped": true }, { "input": "{\\scriptstyle S}", @@ -1863,12 +1866,14 @@ { "input": "( \\nabla \\times \\bold{F} ) \\cdot {\\rm d}\\bold{S} = \\oint_{\\partial S} \\bold{F} \\cdot {\\rm d}\\boldsymbol{\\ell} ", "params": [], - "output": "\"{\\displaystyle" + "output": "\"{\\displaystyle", + "skipped": true }, { "input": "\\oint_C \\bold{B} \\cdot {\\rm d} \\boldsymbol{\\ell} = \\mu_0 ", "params": [], - "output": "\"{\\displaystyle" + "output": "\"{\\displaystyle", + "skipped": true }, { "input": "{\\scriptstyle S}", @@ -2293,12 +2298,14 @@ { "input": "", "params": [], - "output": "Failed to parse (Conversion error. Server ("https:\/\/wikimedia.org\/api\/rest_") reported: "Cannot get mml. Expected width > 0."): {\\displaystyle }<\/strong>\n" + "output": "Failed to parse (Conversion error. Server ("https:\/\/wikimedia.org\/api\/rest_") reported: "Cannot get mml. Expected width > 0."): {\\displaystyle }<\/strong>\n", + "skipped": true }, { "input": " ", "params": [], - "output": "Failed to parse (Conversion error. Server ("https:\/\/wikimedia.org\/api\/rest_") reported: "Cannot get mml. Expected width > 0."): {\\displaystyle }<\/strong>\n" + "output": "Failed to parse (Conversion error. Server ("https:\/\/wikimedia.org\/api\/rest_") reported: "Cannot get mml. Expected width > 0."): {\\displaystyle }<\/strong>\n", + "skipped": true }, { "input": "\\left(\\begin{smallmatrix}a & b\\\\ c & d\\end{smallmatrix}\\right)", diff --git a/tests/phpunit/MathCoverageTest.php b/tests/phpunit/MathCoverageTest.php index c05c51348..7c930ac31 100644 --- a/tests/phpunit/MathCoverageTest.php +++ b/tests/phpunit/MathCoverageTest.php @@ -30,7 +30,10 @@ class MathCoverageTest extends MediaWikiTestCase { * Compares each the rendering result of each input with the expected output. * @dataProvider provideCoverage */ - public function testCoverage( $input, $options, $output ) { + public function testCoverage( $input, $options, $output, $skipped = false ) { + if ( $skipped ) { + $this->markTestSkipped( "Skipping due to changes in recent mathoid versions, cf., T314823" ); + } // TODO: Make rendering mode configurable // TODO: Provide test-ids // TODO: Link to the wikipage that contains the reference rendering