From 51229afd2cb1bc273923fca0c6a53c0bad941cb7 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Tue, 28 Jan 2020 16:38:55 +0000 Subject: [PATCH] Bug 1610245 [wpt PR 21257] - Add tests for baseline, stretchiness and spacing in unknown elements., a=testonly Automatic update from web-platform-tests Add tests for baseline, stretchiness and spacing in unknown elements. (#21257) See https://github.com/mathml-refresh/mathml/issues/139 This also fixes wrong mpaddednotation attribute and repeats spacing tests for other mrow-like elements. -- wpt-commits: 87646d626a9a84941e790da383f140df6b37279d wpt-pr: 21257 UltraBlame original commit: 3a5ca745a2b258b0d6682ed347be800d9490885c --- .../mrow/inferred-mrow-baseline.html | 6 ++- .../mrow/inferred-mrow-stretchy.html | 5 +- .../presentation-markup/mrow/spacing.html | 51 +++++++++++++++++++ 3 files changed, 58 insertions(+), 4 deletions(-) create mode 100644 testing/web-platform/tests/mathml/presentation-markup/mrow/spacing.html diff --git a/testing/web-platform/tests/mathml/presentation-markup/mrow/inferred-mrow-baseline.html b/testing/web-platform/tests/mathml/presentation-markup/mrow/inferred-mrow-baseline.html index 1541b2d6ce17..c92cbba922f0 100644 --- a/testing/web-platform/tests/mathml/presentation-markup/mrow/inferred-mrow-baseline.html +++ b/testing/web-platform/tests/mathml/presentation-markup/mrow/inferred-mrow-baseline.html @@ -20,7 +20,7 @@ window.addEventListener("load", runTests); function runTests() { - ["Mrow", "Sqrt", "Style", "Error", "Phantom", "Math", "Menclose", "Mpadded"].forEach((tag) => { + ["Mrow", "Sqrt", "Style", "Error", "Phantom", "Math", "Menclose", "Mpadded", "Unknown"].forEach((tag) => { var x = document.getElementById("above" + tag).getBoundingClientRect(); var y = document.getElementById("below" + tag).getBoundingClientRect(); test(function() { @@ -43,8 +43,10 @@ - +

diff --git a/testing/web-platform/tests/mathml/presentation-markup/mrow/inferred-mrow-stretchy.html b/testing/web-platform/tests/mathml/presentation-markup/mrow/inferred-mrow-stretchy.html index b6a51762dfda..4b89dd6fa5f0 100644 --- a/testing/web-platform/tests/mathml/presentation-markup/mrow/inferred-mrow-stretchy.html +++ b/testing/web-platform/tests/mathml/presentation-markup/mrow/inferred-mrow-stretchy.html @@ -31,7 +31,7 @@ window.addEventListener("load", () => { document.fonts.ready.then(runTests); }); function runTests() { - ["Mrow", "Sqrt", "Style", "Error", "Phantom", "Math", "Menclose", "Mpadded"].forEach((tag) => { + ["Mrow", "Sqrt", "Style", "Error", "Phantom", "Math", "Menclose", "Mpadded", "Unknown"].forEach((tag) => { var mo = document.getElementById("mo" + tag); test(function() { assert_true(MathMLFeatureDetection.has_mspace()); @@ -52,7 +52,8 @@ - + +

diff --git a/testing/web-platform/tests/mathml/presentation-markup/mrow/spacing.html b/testing/web-platform/tests/mathml/presentation-markup/mrow/spacing.html new file mode 100644 index 000000000000..4bdfc9a001a3 --- /dev/null +++ b/testing/web-platform/tests/mathml/presentation-markup/mrow/spacing.html @@ -0,0 +1,51 @@ + + + + +Spacing in mrows + + + + + + + + + + + + + + + + +
+

+ 1|2 + 1|2 + 1|2 + 12 + 1|2 + 1|2 + 1|2 + 1|2 + 1|2 +

+ +