diff --git a/mathml/presentation-markup/spaces/space-like-001.html b/mathml/presentation-markup/spaces/space-like-001.html index 61375bcd8e320b..62ad0f1278e299 100644 --- a/mathml/presentation-markup/spaces/space-like-001.html +++ b/mathml/presentation-markup/spaces/space-like-001.html @@ -108,6 +108,18 @@ assert_approx_equals(spaceAfter("mpadded2"), 2 * emToPx, epsilon); }, "non-space-like mpadded"); + test(function() { + assert_true(MathMLFeatureDetection.has_operator_spacing()); + assert_approx_equals(spaceBefore("merror1"), emToPx, epsilon); + assert_approx_equals(spaceAfter("merror1"), emToPx, epsilon); + }, "space-like merror"); + + test(function() { + assert_true(MathMLFeatureDetection.has_operator_spacing()); + assert_approx_equals(spaceBefore("merror2"), 0, epsilon); + assert_approx_equals(spaceAfter("merror2"), 2 * emToPx, epsilon); + }, "non-space-like merror"); + done(); } @@ -253,5 +265,34 @@ X

+

+ + X + + + + X + + + X + + X + +

+

+ + X + + + + X + + + X + + X + +

diff --git a/mathml/presentation-markup/spaces/space-like-002.html b/mathml/presentation-markup/spaces/space-like-002.html index f5f4e5a84b2481..b12c61b34ba032 100644 --- a/mathml/presentation-markup/spaces/space-like-002.html +++ b/mathml/presentation-markup/spaces/space-like-002.html @@ -56,9 +56,9 @@ test(function() { assert_true(MathMLFeatureDetection.has_operator_spacing()); - assert_approx_equals(spaceBefore("maction2"), 0, epsilon); - assert_approx_equals(spaceAfter("maction2"), 2 * emToPx, epsilon); - }, "non-space like maction (no first child)"); + assert_approx_equals(spaceBefore("maction2"), emToPx, epsilon); + assert_approx_equals(spaceAfter("maction2"), emToPx, epsilon); + }, "space-like maction (no first child)"); test(function() { assert_approx_equals(spaceBefore("maction3"), 0, epsilon); @@ -74,9 +74,9 @@ test(function() { assert_true(MathMLFeatureDetection.has_operator_spacing()); - assert_approx_equals(spaceBefore("semantics2"), 0, epsilon); - assert_approx_equals(spaceAfter("semantics2"), 2 * emToPx, epsilon); - }, "non-space like semantics (no first child)"); + assert_approx_equals(spaceBefore("semantics2"), emToPx, epsilon); + assert_approx_equals(spaceAfter("semantics2"), emToPx, epsilon); + }, "space-like semantics (no first child)"); test(function() { assert_true(MathMLFeatureDetection.has_operator_spacing()); diff --git a/mathml/presentation-markup/spaces/space-like-003.html b/mathml/presentation-markup/spaces/space-like-003.html index 6d3d007744e7a3..7398ebe2d56656 100644 --- a/mathml/presentation-markup/spaces/space-like-003.html +++ b/mathml/presentation-markup/spaces/space-like-003.html @@ -60,18 +60,6 @@
-

- - X - - - X - - X - - X - -

X