Skip to content

Commit

Permalink
Add test for problem with scaling all math when labels are in use (ma…
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvc committed Jan 15, 2015
1 parent a9588f0 commit 3c80463
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
39 changes: 39 additions & 0 deletions testsuite/UI/math-menu/issue944.html
@@ -0,0 +1,39 @@
<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- -->
<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: -->
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<title>Issue 994</title>
<!-- Copyright (c) 2015 The MathJax Consortium
License: Apache License 2.0 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript" src="../../header.js"></script>
<script type="text/javascript" src="../../scriptTests.js"></script>

<script type="text/javascript">
function preMathJax() {
gConfigObject.extensions.push("MathMenu.js");
gMaxErrorSignals["TeX Jax - parse error"] = 1;
}
function prompt() {return "200%"} // force request for scale to return 200%
function postMathJax() {
MathJax.Menu.saveCookie = function () {} // disable saving of cookies
MathJax.Menu.Scale(); // Do Scale action
}
function getTestCases() {
var OK = (gMaxErrorSignals["TeX Jax - parse error"] == 1);
return [newScriptReftestResult("Scaling with label is OK",OK)];
}
</script>

</head>

<body>

<!-- Scaling calls Reprocess rather than Rerender
https://github.com/mathjax/MathJax/issues/994 -->

$$E=mc^2\label{einstein}\tag{1}$$

</body>
</html>
1 change: 1 addition & 0 deletions testsuite/UI/math-menu/reftest.list
Expand Up @@ -9,3 +9,4 @@ annotate(@note1) random-if(Chrome) random-if(Konqueror||MSIE) != math-menu-1.htm
!= issue777-1.html issue777-1-ref.html
!= issue777-2.html issue777-2-ref.html
!= issue777-3.html issue777-3-ref.html
script issue944.html

0 comments on commit 3c80463

Please sign in to comment.