Skip to content

Commit

Permalink
Bug 1613049 [wpt PR 21568] - Update space-like tests., a=testonly
Browse files Browse the repository at this point in the history
Automatic update from web-platform-tests
Update space-like tests. (#21568)

w3c/mathml#183
--

wpt-commits: 56c5d893f8a3fc6cf2a889d1c42616098ac7959b
wpt-pr: 21568

UltraBlame original commit: 83194ea778725b67db177ae0c1333449101e6e00
  • Loading branch information
marco-c committed Feb 12, 2020
1 parent 8ff841e commit c1bce1a
Show file tree
Hide file tree
Showing 3 changed files with 298 additions and 85 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,106 @@
"
)
;
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
(
)
Expand Down Expand Up @@ -1902,6 +2002,200 @@
p
>
<
p
>
<
math
>
<
mn
>
X
<
/
mn
>
<
mrow
>
<
merror
id
=
"
merror1
"
class
=
"
testedElement
"
>
<
mtext
>
X
<
/
mtext
>
<
mspace
width
=
"
25px
"
height
=
"
10px
"
>
<
/
mspace
>
<
/
merror
>
<
mo
lspace
=
"
1em
"
rspace
=
"
0em
"
>
X
<
/
mo
>
<
/
mrow
>
<
mn
>
X
<
/
mn
>
<
/
math
>
<
/
p
>
<
p
>
<
math
>
<
mn
>
X
<
/
mn
>
<
mrow
>
<
merror
id
=
"
merror2
"
class
=
"
testedElement
"
>
<
mn
>
X
<
/
mn
>
<
mspace
width
=
"
25px
"
height
=
"
10px
"
>
<
/
mspace
>
<
/
merror
>
<
mo
lspace
=
"
1em
"
rspace
=
"
0em
"
>
X
<
/
mo
>
<
/
mrow
>
<
mn
>
X
<
/
mn
>
<
/
math
>
<
/
p
>
<
/
body
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@
maction2
"
)
0
emToPx
epsilon
)
;
Expand All @@ -527,17 +527,14 @@
maction2
"
)
2
*
emToPx
epsilon
)
;
}
"
non
-
space
-
like
maction
(
Expand Down Expand Up @@ -678,7 +675,7 @@
semantics2
"
)
0
emToPx
epsilon
)
;
Expand All @@ -690,17 +687,14 @@
semantics2
"
)
2
*
emToPx
epsilon
)
;
}
"
non
-
space
-
like
semantics
(
Expand Down
Loading

0 comments on commit c1bce1a

Please sign in to comment.