Преглед на файлове

Fixed tests after changes made to model utilities setData.

Szymon Kupś преди 9 години
родител
ревизия
6fe0fa7ddf
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      tests/editor/standardeditor.js

+ 4 - 1
tests/editor/standardeditor.js

@@ -99,10 +99,13 @@ describe( 'StandardEditor', () => {
 				} );
 		} );
 
-		it( 'should set data of the first root', () => {
+		it( 'should get data of the first root', () => {
 			editor.document.createRoot();
 			editor.document.createRoot( '$root', 'secondRoot' );
 
+			editor.editing.createRoot( 'div' );
+			editor.editing.createRoot( 'div', 'secondRoot' );
+
 			setData( editor.document, 'foo' );
 
 			expect( editor.getData() ).to.equal( 'foo' );