|
|
@@ -10,6 +10,7 @@ import Document from '../../src/view/document';
|
|
|
import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
|
|
|
import count from '@ckeditor/ckeditor5-utils/src/count';
|
|
|
import createViewRoot from './_utils/createroot';
|
|
|
+import StylesMap from '../../src/view/stylesmap';
|
|
|
|
|
|
describe( 'Document', () => {
|
|
|
let domRoot, viewDocument;
|
|
|
@@ -91,4 +92,15 @@ describe( 'Document', () => {
|
|
|
expect( calls ).to.equal( 4 );
|
|
|
} );
|
|
|
} );
|
|
|
+
|
|
|
+ describe( 'addStyleProcessorRules()', () => {
|
|
|
+ it( 'should ', () => {
|
|
|
+ const spy = sinon.spy();
|
|
|
+
|
|
|
+ viewDocument.addStyleProcessorRules( spy );
|
|
|
+
|
|
|
+ sinon.assert.calledOnce( spy );
|
|
|
+ sinon.assert.calledWithExactly( spy, StylesMap._styleProcessor );
|
|
|
+ } );
|
|
|
+ } );
|
|
|
} );
|