|
|
@@ -3,10 +3,10 @@
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
-import injectCSSTransitionDisabling from '../../src/bindings/injecttransitiondisabling';
|
|
|
+import injectCssTransitionDisabler from '../../src/bindings/injectcsstransitiondisabler';
|
|
|
import View from '../../src/view';
|
|
|
|
|
|
-describe( 'injectCSSTransitionDisabling()', () => {
|
|
|
+describe( 'injectCssTransitionDisabler()', () => {
|
|
|
let view;
|
|
|
|
|
|
class TestView extends View {
|
|
|
@@ -17,7 +17,7 @@ describe( 'injectCSSTransitionDisabling()', () => {
|
|
|
tag: 'div'
|
|
|
} );
|
|
|
|
|
|
- injectCSSTransitionDisabling( this );
|
|
|
+ injectCssTransitionDisabler( this );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -31,35 +31,35 @@ describe( 'injectCSSTransitionDisabling()', () => {
|
|
|
} );
|
|
|
|
|
|
it( 'should create a protected observable property for class binding', () => {
|
|
|
- expect( view._isCSSTransitionsDisabled ).to.be.false;
|
|
|
+ expect( view._isCssTransitionsDisabled ).to.be.false;
|
|
|
} );
|
|
|
|
|
|
it( 'should not alter the CSS class of the view until blocking is enabled', () => {
|
|
|
expect( view.element.classList ).to.be.empty;
|
|
|
} );
|
|
|
|
|
|
- describe( 'disableCSSTransitions() method', () => {
|
|
|
+ describe( 'disableCssTransitions() method', () => {
|
|
|
it( 'should belong to the view', () => {
|
|
|
- expect( view.disableCSSTransitions ).to.be.a( 'function' );
|
|
|
+ expect( view.disableCssTransitions ).to.be.a( 'function' );
|
|
|
} );
|
|
|
|
|
|
it( 'should set the proper CSS class when called', () => {
|
|
|
- view.disableCSSTransitions();
|
|
|
+ view.disableCssTransitions();
|
|
|
|
|
|
expect( view.element.classList.contains( 'ck-transitions-disabled' ) ).to.be.true;
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
- describe( 'enableCSSTransitions() method', () => {
|
|
|
+ describe( 'enableCssTransitions() method', () => {
|
|
|
it( 'should belong to the view', () => {
|
|
|
- expect( view.enableCSSTransitions ).to.be.a( 'function' );
|
|
|
+ expect( view.enableCssTransitions ).to.be.a( 'function' );
|
|
|
} );
|
|
|
|
|
|
it( 'should remove the proper CSS class when called', () => {
|
|
|
- view.disableCSSTransitions();
|
|
|
+ view.disableCssTransitions();
|
|
|
expect( view.element.classList.contains( 'ck-transitions-disabled' ) ).to.be.true;
|
|
|
|
|
|
- view.enableCSSTransitions();
|
|
|
+ view.enableCssTransitions();
|
|
|
expect( view.element.classList.contains( 'ck-transitions-disabled' ) ).to.be.false;
|
|
|
} );
|
|
|
} );
|