|
|
@@ -72,6 +72,8 @@ describe( 'FontFamilyEditing', () => {
|
|
|
} );
|
|
|
|
|
|
describe( 'disableValueMatching=true', () => {
|
|
|
+ let editor, doc;
|
|
|
+
|
|
|
beforeEach( () => {
|
|
|
return VirtualTestEditor
|
|
|
.create( {
|
|
|
@@ -90,6 +92,10 @@ describe( 'FontFamilyEditing', () => {
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
+ afterEach( () => {
|
|
|
+ return editor.destroy();
|
|
|
+ } );
|
|
|
+
|
|
|
describe( 'editing pipeline conversion', () => {
|
|
|
it( 'should convert unknown fontFamily attribute values', () => {
|
|
|
setModelData( doc, '<paragraph>f<$text fontFamily="foo-bar">o</$text>o</paragraph>' );
|