@@ -8,17 +8,17 @@ var destroyGraphDiv = require('../assets/destroy_graph_div');
8
8
describe ( 'Test MathJax:' , function ( ) {
9
9
var mathJaxScriptTag ;
10
10
11
- // N.B. we have to load MathJax "dynamically" as Karam
11
+ // N.B. we used to have to load MathJax "dynamically" as Karam
12
12
// does not undefined the MathJax's `?config=` parameter.
13
13
//
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
15
16
// suites, but to do that we'll need to find a way to remove MathJax from
16
17
// page without breaking things downstream.
17
18
beforeAll ( function ( done ) {
18
19
mathJaxScriptTag = document . createElement ( 'script' ) ;
19
20
mathJaxScriptTag . type = 'text/javascript' ;
20
21
mathJaxScriptTag . onload = function ( ) {
21
- require ( '@src/fonts/mathjax_config' ) ( ) ;
22
22
done ( ) ;
23
23
} ;
24
24
mathJaxScriptTag . onerror = function ( ) {
@@ -73,12 +73,12 @@ describe('Test MathJax:', function() {
73
73
}
74
74
75
75
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}$ $' ] ;
78
78
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$ $'
82
82
] ;
83
83
84
84
it ( 'should scoot x-axis title below x-axis ticks' , function ( done ) {
0 commit comments