Skip to content

Commit 0b3db23

Browse files
committed
adjust mathjax test
1 parent 721d634 commit 0b3db23

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/jasmine/bundle_tests/mathjax_test.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ var destroyGraphDiv = require('../assets/destroy_graph_div');
88
describe('Test MathJax:', function() {
99
var mathJaxScriptTag;
1010

11-
// N.B. we have to load MathJax "dynamically" as Karam
11+
// N.B. we used to have to load MathJax "dynamically" as Karam
1212
// does not undefined the MathJax's `?config=` parameter.
1313
//
14-
// Eventually, it might be nice to move these tests in the "regular" test
14+
// Now with the mathjax_config no longer needed,
15+
// it might be nice to move these tests in the "regular" test
1516
// suites, but to do that we'll need to find a way to remove MathJax from
1617
// page without breaking things downstream.
1718
beforeAll(function(done) {
1819
mathJaxScriptTag = document.createElement('script');
1920
mathJaxScriptTag.type = 'text/javascript';
2021
mathJaxScriptTag.onload = function() {
21-
require('@src/fonts/mathjax_config')();
2222
done();
2323
};
2424
mathJaxScriptTag.onerror = function() {
@@ -73,12 +73,12 @@ describe('Test MathJax:', function() {
7373
}
7474

7575
var longCats = ['aaaaaaaaa', 'bbbbbbbbb', 'cccccccc'];
76-
var texTitle = '$f(x) = \\int_0^\\infty \\psi(t) dt$';
77-
var texCats = ['$\\phi$', '$\\nabla \\cdot \\vec{F}$', '$\\frac{\\partial x}{\\partial y}$'];
76+
var texTitle = '$$f(x) = \\int_0^\\infty \\psi(t) dt$$';
77+
var texCats = ['$$\\phi$$', '$$\\nabla \\cdot \\vec{F}$$', '$$\\frac{\\partial x}{\\partial y}$$'];
7878
var longTexCats = [
79-
'$\\int_0^\\infty \\psi(t) dt$',
80-
'$\\alpha \\int_0^\\infty \\eta(t) dt$',
81-
'$\\int_0^\\infty \\zeta(t) dt$'
79+
'$$\\int_0^\\infty \\psi(t) dt$$',
80+
'$$\\alpha \\int_0^\\infty \\eta(t) dt$$',
81+
'$$\\int_0^\\infty \\zeta(t) dt$$'
8282
];
8383

8484
it('should scoot x-axis title below x-axis ticks', function(done) {

0 commit comments

Comments
 (0)