浏览代码

Changed parameters orded of model.document.createRoot() method.

Oskar Wrobel 9 年之前
父节点
当前提交
451386733b
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      tests/_utils-tests/modeltesteditor.js
  2. 2 2
      tests/editor/standardeditor.js

+ 1 - 1
tests/_utils-tests/modeltesteditor.js

@@ -56,7 +56,7 @@ describe( 'ModelTestEditor', () => {
 		} );
 
 		it( 'should set data of the first root', () => {
-			editor.document.createRoot( 'secondRoot' );
+			editor.document.createRoot( '$root', 'secondRoot' );
 
 			editor.setData( 'foo' );
 

+ 2 - 2
tests/editor/standardeditor.js

@@ -74,7 +74,7 @@ describe( 'StandardEditor', () => {
 
 		it( 'should set data of the first root', () => {
 			editor.document.createRoot();
-			editor.document.createRoot( 'secondRoot' );
+			editor.document.createRoot( '$root', 'secondRoot' );
 
 			editor.editing.createRoot( 'div' );
 			editor.editing.createRoot( 'div', 'secondRoot' );
@@ -101,7 +101,7 @@ describe( 'StandardEditor', () => {
 
 		it( 'should set data of the first root', () => {
 			editor.document.createRoot();
-			editor.document.createRoot( 'secondRoot' );
+			editor.document.createRoot( '$root', 'secondRoot' );
 
 			setData( editor.document, 'foo' );