Skip to content

Commit 68a5f80

Browse files
committed
update jasmine test
1 parent bb216e1 commit 68a5f80

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

test/jasmine/bundle_tests/mathjax_config_test.js

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)