Skip to content

Commit 4f659a4

Browse files
committed
Add test for mathjax/MathJax#1418
1 parent 003df48 commit 4f659a4

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!DOCTYPE html>
2+
<html class="reftest-wait">
3+
<head>
4+
<title>Issue 1418</title>
5+
<!-- Copyright (c) 2016 The MathJax Consortium
6+
License: Apache License 2.0 -->
7+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
8+
<script type="text/javascript" src="../../header.js"></script>
9+
<script type="text/javascript" src="../../scriptTests.js"></script>
10+
11+
<script type="text/x-mathjax-config">
12+
MathJax.Hub.Register.MessageHook(gOutputJax+" Jax - unknown char",unknownChar);
13+
</script>
14+
<script>
15+
var OK = true;
16+
function unknownChar() {OK = false}
17+
function getTestCases() {
18+
var U2206 = document.getElementById("MJMAIN-2206");
19+
if (U2206 && U2206.getAttribute("d") === "") unknownChar();
20+
return [
21+
newScriptReftestResult("U+2206 defined ", OK)
22+
];
23+
}
24+
</script>
25+
</head>
26+
27+
<body>
28+
29+
<!-- U+2206 has no data in SVG, and isn't in HTML-CSS or CHTML
30+
https://github.com/mathjax/MathJax/issues/1418 -->
31+
32+
<div>
33+
<math>
34+
<mo>&#x2206;</mo>
35+
</math>
36+
</div>
37+
38+
</body>
39+
</html>

testsuite/LaTeXToMathML/letters/reftest.list

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ tree== greek-2.html greek-2-ref.html
33
tree== greek-3.html greek-3-ref.html
44
tree== greek-4.html greek-4-ref.html
55
tree== hebrew-1.html hebrew-1-ref.html
6+
require((HTML-CSS|CommonHTML|SVG)&&TeX) script issue1418.html

0 commit comments

Comments
 (0)