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

Aligned test with engine changes.

Oskar Wróbel 8 лет назад
Родитель
Сommit
c5eb9216cc
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      packages/ckeditor5-editor-inline/tests/inlineeditor.js

+ 3 - 3
packages/ckeditor5-editor-inline/tests/inlineeditor.js

@@ -50,8 +50,8 @@ describe( 'InlineEditor', () => {
 		} );
 
 		it( 'creates a single document root', () => {
-			expect( count( editor.document.getRootNames() ) ).to.equal( 1 );
-			expect( editor.document.getRoot() ).to.have.property( 'name', '$root' );
+			expect( count( editor.model.document.getRootNames() ) ).to.equal( 1 );
+			expect( editor.model.document.getRoot() ).to.have.property( 'name', '$root' );
 		} );
 
 		it( 'creates the UI using BoxedEditorUI classes', () => {
@@ -207,7 +207,7 @@ describe( 'InlineEditor', () => {
 				.then( newEditor => {
 					editor = newEditor;
 
-					const schema = editor.document.schema;
+					const schema = editor.model.schema;
 
 					schema.registerItem( 'heading' );
 					schema.allow( { name: 'heading', inside: '$root' } );