浏览代码

Merge pull request #86 from ckeditor/t/ckeditor-engine/1299

Other: Rename `setMarker` to `addMarker` (see https://github.com/ckeditor/ckeditor5-engine/pull/1388).
Piotr Jasiun 7 年之前
父节点
当前提交
e4c124a55b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-undo/tests/undoediting-integration.js

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

@@ -1055,7 +1055,7 @@ describe( 'UndoEditing integration', () => {
 		// 1. Step - add text and marker to the paragraph.
 		// 1. Step - add text and marker to the paragraph.
 		model.change( writer => {
 		model.change( writer => {
 			writer.appendText( 'foo', paragraph );
 			writer.appendText( 'foo', paragraph );
-			writer.setMarker( 'marker', Range.createIn( paragraph ), { usingOperation: true } );
+			writer.addMarker( 'marker', { range: Range.createIn( paragraph ), usingOperation: true } );
 		} );
 		} );
 
 
 		// 2. Step - remove text from paragraph.
 		// 2. Step - remove text from paragraph.