Skip to content

Commit 4e3a4eb

Browse files
committed
Add test for mathjax/MathJax#1447
1 parent 30391b7 commit 4e3a4eb

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<!DOCTYPE html>
2+
<html class="reftest-wait">
3+
<head>
4+
<title>issue 1447</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/javascript">
12+
gMaxErrorSignals["Math Processing Error"] = 1;
13+
14+
function getTestCases() {
15+
var OK = (gMaxErrorSignals["Math Processing Error"] === 1);
16+
return [newScriptReftestResult("No processing error ",OK)];
17+
}
18+
</script>
19+
</head>
20+
21+
<body>
22+
23+
<!-- Problems with getNode() in connection with line breaks
24+
https://github.com/mathjax/MathJax/issues/1447 -->
25+
26+
<div>
27+
<math>
28+
<msup>
29+
<mfenced>
30+
<mrow>
31+
<mi>x</mi>
32+
<mspace linebreak="newline"></mspace>
33+
</mrow>
34+
</mfenced>
35+
<mfenced>
36+
<msub>
37+
<mi>b</mi>
38+
<mn>4</mn>
39+
</msub>
40+
</mfenced>
41+
</msup>
42+
</math>
43+
</div>
44+
<br/>
45+
46+
</body>
47+
</html>

testsuite/MathMLToDisplay/Topics/LineBreak/reftest.list

+1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ fails-if(NativeMML) == issue769-5b.html issue769-5-ref.html
1717
fails-if(NativeMML) == issue769-6a.html issue769-6-ref.html
1818
fails-if(NativeMML) == issue769-6b.html issue769-6-ref.html
1919
script issue949.html
20+
require(CommonHTML) script issue1447.html
2021
script issue1449.html

0 commit comments

Comments
 (0)