diff --git a/tests/imageresize.js b/tests/imageresize.js index 0a5d70fe..819a2fac 100644 --- a/tests/imageresize.js +++ b/tests/imageresize.js @@ -562,14 +562,23 @@ describe( 'ImageResize', () => { // The image is 96x96 pixels. const imageBaseUrl = '/assets/sample.png'; const getModel = () => editor.model.document.getRoot().getChild( 0 ); - let image; - - before( async () => { - image = await preloadImage( imageBaseUrl ); + let images = []; + + before( () => { + return Promise.all( [ + preloadImage( imageBaseUrl ), + preloadImage( imageBaseUrl + '?a' ), + preloadImage( imageBaseUrl + '?b' ), + preloadImage( imageBaseUrl + '?c' ) + ] ).then( loadedImages => { + images = loadedImages; + } ); } ); after( () => { - image.remove(); + for ( const image of images ) { + image.remove(); + } } ); beforeEach( () => {