Selaa lähdekoodia

Merge pull request #109 from ckeditor/t/108

t/108: Fixed tests failing on master due to uncontrolled environment and mi…
Piotrek Koszuliński 9 vuotta sitten
vanhempi
sitoutus
d73060b4c0
1 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  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 );
 			positionedParent.appendChild( element );
 
+			stubElementRect( positionedParent, {
+				top: 1000,
+				right: 1010,
+				bottom: 1010,
+				left: 1000,
+				width: 10,
+				height: 10
+			} );
+
 			assertPosition( { element, target, positions: [ attachLeft ] }, {
 				top: -900,
 				left: -920,