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

Protected methods should not be used in tests. Replaced with Writer.

Kamil Piechaczek преди 7 години
родител
ревизия
e372a17df0
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      packages/ckeditor5-undo/tests/undoediting-integration.js

+ 3 - 1
packages/ckeditor5-undo/tests/undoediting-integration.js

@@ -1017,7 +1017,9 @@ describe( 'UndoEditing integration', () => {
 			input( '<paragraph>Foo</paragraph><paragraph>Bar</paragraph>' );
 
 			// Remove children from graveyard because they are inserted there after `input` call.
-			doc.graveyard._removeChildren( 0, doc.graveyard.childCount );
+			model.change( writer => {
+				writer.remove( Range.createIn( doc.graveyard ) );
+			} );
 
 			const batchWithMerge = new Batch();