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

Merge branch t/ckeditor5-engine/532

Internal: Aligned Schema API use to the new Schema API.
Piotrek Koszuliński 8 лет назад
Родитель
Сommit
3339557b90
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      packages/ckeditor5-undo/tests/undoengine-integration.js

+ 3 - 3
packages/ckeditor5-undo/tests/undoengine-integration.js

@@ -39,7 +39,7 @@ describe( 'UndoEngine integration', () => {
 				doc = model.document;
 
 				// Add "div feature".
-				model.schema.registerItem( 'div', '$block' );
+				model.schema.register( 'div', { inheritAllFrom: '$block' } );
 				buildModelConverter().for( editor.data.modelToView, editor.editing.modelToView ).fromElement( 'div' ).toElement( 'div' );
 				buildViewConverter().for( editor.data.viewToModel ).fromElement( 'div' ).toElement( 'div' );
 
@@ -338,7 +338,7 @@ describe( 'UndoEngine integration', () => {
 
 	describe( 'wrapping, unwrapping, merging, splitting', () => {
 		it( 'wrap and undo', () => {
-			model.schema.allow( { name: '$text', inside: '$root' } );
+			model.schema.extend( '$text', { allowIn: '$root' } );
 			input( 'fo[zb]ar' );
 
 			model.change( writer => {
@@ -353,7 +353,7 @@ describe( 'UndoEngine integration', () => {
 		} );
 
 		it( 'wrap, move and undo', () => {
-			model.schema.allow( { name: '$text', inside: '$root' } );
+			model.schema.extend( '$text', { allowIn: '$root' } );
 			input( 'fo[zb]ar' );
 
 			model.change( writer => {