浏览代码

Aligned test with engine changes.

Oskar Wróbel 8 年之前
父节点
当前提交
42f8e96f08
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      packages/ckeditor5-editor-balloon/tests/ballooneditor.js

+ 3 - 3
packages/ckeditor5-editor-balloon/tests/ballooneditor.js

@@ -54,8 +54,8 @@ describe( 'BalloonEditor', () => {
 		} );
 
 		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( 'uses HTMLDataProcessor', () => {
@@ -215,7 +215,7 @@ describe( 'BalloonEditor', () => {
 				.then( newEditor => {
 					editor = newEditor;
 
-					const schema = editor.document.schema;
+					const schema = editor.model.schema;
 
 					schema.registerItem( 'heading' );
 					schema.allow( { name: 'heading', inside: '$root' } );