mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-01 02:36:47 +00:00
Add support for cli only version in MathStatus
Change-Id: I256c7bd1fd38ec3f48c4eaab1e8ff0b6c8aba3d4
(cherry picked from commit 58bba16d5d
)
This commit is contained in:
parent
6738e46777
commit
c1a9d846df
|
@ -116,7 +116,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