8
0
Просмотр исходного кода

Fixed DataController insertContent test to not log warning.

Szymon Kupś 9 лет назад
Родитель
Сommit
4a15ffb8bc
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      packages/ckeditor5-engine/tests/controller/datacontroller.js

+ 1 - 0
packages/ckeditor5-engine/tests/controller/datacontroller.js

@@ -409,6 +409,7 @@ describe( 'DataController', () => {
 			const spy = sinon.spy();
 			const content = new ModelDocumentFragment( [ new ModelText( 'x' ) ] );
 			const batch = modelDocument.batch();
+			schema.allow( { name: '$text', inside: '$root' } );
 
 			data.on( 'insertContent', spy );