Browse Source

Merge pull request #200 from ckeditor/t/ckeditor5-engine/390

Changed parameters order of model.document.createRoot() method.
Szymon Kupś 9 years ago
parent
commit
bac680722d
2 changed files with 3 additions and 3 deletions
  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' );