Explorar o código

Tests: Use sample file for automated tests. See ckeditor/ckeditor5-dev#139.

Maciej Gołaszewski %!s(int64=6) %!d(string=hai) anos
pai
achega
d800b78a75
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      packages/ckeditor5-ui/tests/toolbar/block/blocktoolbar.js

+ 3 - 3
packages/ckeditor5-ui/tests/toolbar/block/blocktoolbar.js

@@ -227,14 +227,14 @@ describe( 'BlockToolbar', () => {
 		} );
 		} );
 
 
 		it( 'should display the button when the first selected block is an object', () => {
 		it( 'should display the button when the first selected block is an object', () => {
-			setData( editor.model, '[<image src="foo.jpg"><caption>foo</caption></image>]' );
+			setData( editor.model, '[<image src="/assets/sample.png"><caption>foo</caption></image>]' );
 
 
 			expect( blockToolbar.buttonView.isVisible ).to.be.true;
 			expect( blockToolbar.buttonView.isVisible ).to.be.true;
 		} );
 		} );
 
 
 		// This test makes no sense now, but so do all other tests here (see https://github.com/ckeditor/ckeditor5/issues/1522).
 		// This test makes no sense now, but so do all other tests here (see https://github.com/ckeditor/ckeditor5/issues/1522).
 		it( 'should not display the button when the selection is inside a limit element', () => {
 		it( 'should not display the button when the selection is inside a limit element', () => {
-			setData( editor.model, '<image src="foo.jpg"><caption>f[]oo</caption></image>' );
+			setData( editor.model, '<image src="/assets/sample.png"><caption>f[]oo</caption></image>' );
 
 
 			expect( blockToolbar.buttonView.isVisible ).to.be.false;
 			expect( blockToolbar.buttonView.isVisible ).to.be.false;
 		} );
 		} );
@@ -258,7 +258,7 @@ describe( 'BlockToolbar', () => {
 			} ).then( editor => {
 			} ).then( editor => {
 				const blockToolbar = editor.plugins.get( BlockToolbar );
 				const blockToolbar = editor.plugins.get( BlockToolbar );
 
 
-				setData( editor.model, '[<image src="foo.jpg"></image>]' );
+				setData( editor.model, '[<image src="/assets/sample.png"></image>]' );
 
 
 				expect( blockToolbar.buttonView.isVisible ).to.be.false;
 				expect( blockToolbar.buttonView.isVisible ).to.be.false;