Skip to content

Commit

Permalink
Merge branch 't/12930'
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Jasiun committed Mar 2, 2015
2 parents 4176abb + 3588f4e commit d3b2b45
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Expand Up @@ -13,6 +13,7 @@ Fixed Issues:
Other Changes:

* [#12844](http://dev.ckeditor.com/ticket/12844): Upgraded the [testing environment](http://docs.ckeditor.com/#!/guide/dev_tests) to [Bender.js](https://github.com/benderjs/benderjs) `0.2.*`.
* [#12930](http://dev.ckeditor.com/ticket/12930): Because of licenses, removed truncated-mathjax from the test directory, now `bender.config.mathJaxLibPath` need to be configured manually.

## CKEditor 4.4.7

Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/mathjax/frameWrapper.js
Expand Up @@ -17,7 +17,7 @@
doc = iFrame.getFrameDocument(),
fakeEditor = {
config: {
mathJaxLib: 'http://cdn.mathjax.org/mathjax/2.2-latest/MathJax.js?config=TeX-AMS_HTML'
mathJaxLib: ''
},
fire: function() {
//mock
Expand Down
8 changes: 6 additions & 2 deletions tests/plugins/mathjax/mathjax.js
Expand Up @@ -6,7 +6,7 @@

CKEDITOR.disableAutoInline = true;

var mathJaxLib = 'http://cdn.mathjax.org/mathjax/2.2-latest/MathJax.js?config=TeX-AMS_HTML';
var mathJaxLib = bender.config.mathJaxLibPath;

var editor;

Expand Down Expand Up @@ -47,8 +47,12 @@
},

'async:init': function() {
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 )
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) {
assert.ignore();
}

assert.isString( mathJaxLib,
'bender.config.mathJaxLibPath should be defined with the path to MathJax lib (MathJax.js?config=TeX-AMS_HTML).' );

var tc = this;

Expand Down

0 comments on commit d3b2b45

Please sign in to comment.