Procházet zdrojové kódy

Merge pull request #182 from ckeditor/t/ckeditor5-engine/738

Other: Aligned code to the changes API in `ckeditor5-engine`. Read more ckeditor/ckeditor5-engine#738.
Szymon Kupś před 7 roky
rodič
revize
b3f01ef5cb

+ 2 - 3
packages/ckeditor5-image/tests/imagecaption/imagecaptionediting.js

@@ -465,12 +465,11 @@ describe( 'ImageCaptionEditing', () => {
 			} );
 
 			it( 'undo should work after inserting the image', () => {
-				const image = new ModelElement( 'image' );
-				image.setAttribute( 'src', '/foo.png' );
-
 				setModelData( model, '<paragraph>foo[]</paragraph>' );
 
 				model.change( writer => {
+					const image = writer.createElement( 'image', { src: '/foo.png' } );
+
 					writer.insert( image, doc.getRoot() );
 				} );