Bug 1574773 - Permafailing layout/mathml/tests/test_bug553917.html. r=emilio

Update test_bug553917 so that it does not expect invalid lengths
for "thin", "thick", "medium" when mfrac linethickness names are
allowed. This fixes failure in non-nightly builds where these
names are not disabled yet.

Differential Revision: https://phabricator.services.mozilla.com/D42455

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Frédéric Wang 2019-08-19 07:37:08 +00:00
Родитель 240771fa29
Коммит 5f76ecca6e
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -14,6 +14,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=553917
.getService(SpecialPowers.Ci.nsIStringBundleService); .getService(SpecialPowers.Ci.nsIStringBundleService);
var g_bundl = var g_bundl =
stringBundleService.createBundle("chrome://global/locale/mathml/mathml.properties"); stringBundleService.createBundle("chrome://global/locale/mathml/mathml.properties");
const allow_linethickness_names = !SpecialPowers.getBoolPref('mathml.mfrac_linethickness_names.disabled');
var g_errorInfo = { var g_errorInfo = {
/*<math><mroot></mroot></math> /*<math><mroot></mroot></math>
@ -58,7 +60,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=553917
<math><mfrac linethickness="thick"><mn>1</mn><mn>2</mn></mfrac></math> <math><mfrac linethickness="thick"><mn>1</mn><mn>2</mn></mfrac></math>
*/ */
LengthParsingError : { LengthParsingError : {
status: [false, false, false, false, false, false, false, false, false], status: [false, false, false, false, false, false, allow_linethickness_names, allow_linethickness_names, allow_linethickness_names],
args: [["2..0"], ["1.5notaunit"], ["2"],["BADlspace"],["BADheight"],["BADdepth"], ["thin"],["medium"],["thick"]] args: [["2..0"], ["1.5notaunit"], ["2"],["BADlspace"],["BADheight"],["BADdepth"], ["thin"],["medium"],["thick"]]
}, },
/*<math><mmultiscripts></mmultiscripts></math> /*<math><mmultiscripts></mmultiscripts></math>