mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-27 17:01:07 +00:00
Add support for cli only version in MathStatus
Change-Id: I256c7bd1fd38ec3f48c4eaab1e8ff0b6c8aba3d4
This commit is contained in:
parent
008759c331
commit
58bba16d5d
|
@ -111,7 +111,7 @@ class SpecialMathStatus extends SpecialPage {
|
|||
// phpcs:ignore Generic.Files.LineLength.TooLong
|
||||
$inputSample = '<msub> <mrow> <mi> P</mi> </mrow> <mrow> <mi> i</mi> <mi> j</mi> </mrow> </msub> <mo> =</mo> <mfrac> <mrow> <mn> 100</mn> <msub> <mrow> <mi> d</mi> </mrow> <mrow> <mi> i</mi> <mi> j</mi> </mrow> </msub> </mrow> <mrow> <mn> 6.75</mn> <msub> <mrow> <mi> r</mi> </mrow> <mrow> <mi> j</mi> </mrow> </msub> </mrow> </mfrac> <mo> ,</mo> </math>';
|
||||
$attribs = [ 'type' => 'pmml' ];
|
||||
$renderer = new MathMathML( $inputSample, $attribs );
|
||||
$renderer = $this->rendererFactory->getRenderer( $inputSample, $attribs, MathConfig::MODE_MATHML );
|
||||
$this->assertEquals( 'pmml', $renderer->getInputType(), 'Checking if MathML input is supported' );
|
||||
$this->assertTrue( $renderer->render(), 'Rendering Presentation MathML sample' );
|
||||
$real = $renderer->getHtmlOutput();
|
||||
|
|
Loading…
Reference in a new issue