Explorar el Código

Merge pull request #258 from ckeditor/t/257

Fixes for tests using setData
Piotr Jasiun hace 9 años
padre
commit
c3ca56f3e8
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      tests/editor/standardeditor.js

+ 4 - 1
tests/editor/standardeditor.js

@@ -97,10 +97,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' );