From b3e47473f0ceda5ab99de016c081e93118ec0720 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?=
Date: Tue, 4 Feb 2020 10:46:46 +0100
Subject: [PATCH] Update space-like tests.
https://github.com/mathml-refresh/mathml/issues/183
---
.../spaces/space-like-001.html | 41 +++++++++++++++++++
.../spaces/space-like-002.html | 12 +++---
.../spaces/space-like-003.html | 12 ------
3 files changed, 47 insertions(+), 18 deletions(-)
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
+
+
+
+
+
+