Преглед изворни кода

Fixed: Tests failing on master due to uncontrolled environment and missing stub.

Aleksander Nowodzinski пре 9 година
родитељ
комит
fb395b0de5
1 измењених фајлова са 9 додато и 0 уклоњено
  1. 9 0
      packages/ckeditor5-utils/tests/dom/position.js

+ 9 - 0
packages/ckeditor5-utils/tests/dom/position.js

@@ -66,6 +66,15 @@ describe( 'getOptimalPosition', () => {
 			document.body.appendChild( positionedParent );
 			document.body.appendChild( positionedParent );
 			positionedParent.appendChild( element );
 			positionedParent.appendChild( element );
 
 
+			stubElementRect( positionedParent, {
+				top: 1000,
+				right: 1010,
+				bottom: 1010,
+				left: 1000,
+				width: 10,
+				height: 10
+			} );
+
 			assertPosition( { element, target, positions: [ attachLeft ] }, {
 			assertPosition( { element, target, positions: [ attachLeft ] }, {
 				top: -900,
 				top: -900,
 				left: -920,
 				left: -920,