ソースを参照

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

Aleksander Nowodzinski 8 年 前
コミット
0c209a5ebf
1 ファイル変更1 行追加1 行削除
  1. 1 1
      packages/ckeditor5-engine/tests/view/document/document.js

+ 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 );