Merge "Fix MMLGenerationParserTest creating HTML file"

This commit is contained in:
jenkins-bot 2023-09-26 16:05:10 +00:00 committed by Gerrit Code Review
commit 9450bb29f1
2 changed files with 4 additions and 2 deletions

View file

@ -284,12 +284,14 @@ class BaseParsing {
$styleAttr = [ "maxsize" => "1.2em", "minsize" => "1.2em" ];
}
/* @phan-suppress-next-line SecurityCheck-DoubleEscaped */
$frac = new MMLmfrac( '', $attrs );
} else {
// NodeUtil_js_1.default.setProperties(frac, { displaystyle: false,
// scriptlevel: styleDigit - 1 });
// tbd add props
$frac = new MMLmfrac( '', $attrs );
/* @phan-suppress-next-line SecurityCheck-DoubleEscaped */
$frac = new MMLmfrac( '', $attrs );
$styleAttr = [ "maxsize" => "1.2em", "minsize" => "1.2em" ];
}

View file

@ -26,7 +26,7 @@ final class MMLGenerationParserTest extends MediaWikiUnitTestCase {
private static $FILTERSTART = 0;
private static $FILTERLENGTH = 50;
private static $GENERATEHTML = true;
private static $GENERATEHTML = false;
private static $GENERATEDHTMLFILE = __DIR__ . "/MMLGenerationParserTest-Output.html";
protected function setUp(): void {