Ver código fonte

Tests: Fixed failing ing Document#scrollToTheSelection tests after ckeditor/ckeditor5-utils#175.

Aleksander Nowodzinski 8 anos atrás
pai
commit
0c209a5ebf

+ 1 - 1
packages/ckeditor5-engine/tests/view/document/document.js

@@ -339,7 +339,7 @@ describe( 'Document', () => {
 
 		it( 'scrolls to the first range in selection with an offset', () => {
 			const stub = testUtils.sinon.stub( global.window, 'scrollTo' );
-			const root = viewDocument.createRoot( document.createElement( 'div' ) );
+			const root = viewDocument.createRoot( domRoot );
 			const range = ViewRange.createIn( root );
 
 			viewDocument.selection.addRange( range );