浏览代码

Tests: Code refactoring in the view/document tests to suppress Rect utility warnings (see: ckeditor/ckeditor5-utils#178).

Aleksander Nowodzinski 8 年之前
父节点
当前提交
31c64ee3bb
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      packages/ckeditor5-engine/tests/view/document/document.js

+ 5 - 0
packages/ckeditor5-engine/tests/view/document/document.js

@@ -325,6 +325,11 @@ describe( 'Document', () => {
 	} );
 
 	describe( 'scrollToTheSelection()', () => {
+		beforeEach( () => {
+			// Silence the Rect warnings.
+			testUtils.sinon.stub( log, 'warn' );
+		} );
+
 		it( 'does nothing when there are no ranges in the selection', () => {
 			const stub = testUtils.sinon.stub( global.window, 'scrollTo' );