@@ -18,10 +18,13 @@ describe('Test MathJax v' + mathjaxVersion + ' config test:', function() {
1818
1919 window . MathJax = {
2020 startup : {
21- output : 'chtml' ,
22- tex : {
23- inlineMath : [ [ '|' , '|' ] ]
24- }
21+ output : 'svg'
22+ } ,
23+ tex : {
24+ inlineMath : [ [ '|' , '|' ] ]
25+ } ,
26+ svg : {
27+ fontCache : 'none'
2528 }
2629 } ;
2730
@@ -34,10 +37,11 @@ describe('Test MathJax v' + mathjaxVersion + ' config test:', function() {
3437
3538 afterAll ( destroyGraphDiv ) ;
3639
37- it ( 'should maintain startup renderer & inlineMath after SVG rendering' , function ( done ) {
40+ it ( 'should maintain original inlineMath & fontCache config values after SVG rendering' , function ( done ) {
3841 // before plot
39- expect ( window . MathJax . config . startup . output ) . toEqual ( 'chtml' ) ;
40- expect ( window . MathJax . config . startup . tex . inlineMath ) . toEqual ( [ [ '|' , '|' ] ] ) ;
42+ expect ( window . MathJax . config . startup . output ) . toEqual ( 'svg' ) ;
43+ expect ( window . MathJax . config . tex . inlineMath ) . toEqual ( [ [ '|' , '|' ] ] ) ;
44+ expect ( window . MathJax . config . svg . fontCache ) . toEqual ( 'none' ) ;
4145
4246 Plotly . newPlot ( gd , {
4347 data : [ {
@@ -51,8 +55,9 @@ describe('Test MathJax v' + mathjaxVersion + ' config test:', function() {
5155 } )
5256 . then ( function ( ) {
5357 // after plot
54- expect ( window . MathJax . config . startup . output ) . toEqual ( 'chtml' ) ;
55- expect ( window . MathJax . config . startup . tex . inlineMath ) . toEqual ( [ [ '|' , '|' ] ] ) ;
58+ expect ( window . MathJax . config . startup . output ) . toEqual ( 'svg' ) ;
59+ expect ( window . MathJax . config . tex . inlineMath ) . toEqual ( [ [ '|' , '|' ] ] ) ;
60+ expect ( window . MathJax . config . svg . fontCache ) . toEqual ( 'none' ) ;
5661 } )
5762 . then ( done , done . fail ) ;
5863 } ) ;
0 commit comments