Przeglądaj źródła

Fixed failing tests in Safari.

Kamil Piechaczek 8 lat temu
rodzic
commit
f0070e2613

+ 3 - 0
packages/ckeditor5-utils/tests/dom/rect.js

@@ -909,6 +909,9 @@ describe( 'Rect', () => {
 					height: 230
 				} );
 
+				// Safari fails because of "afterEach()" hook tries to restore values from removed element.
+				// We need to restore these values manually.
+				testUtils.sinon.restore();
 				iframe.remove();
 				done();
 			} );

+ 3 - 0
packages/ckeditor5-utils/tests/dom/scroll.js

@@ -248,6 +248,9 @@ describe( 'scrollViewportToShowTarget()', () => {
 		} );
 
 		afterEach( () => {
+			// Safari fails because of "afterEach()" hook tries to restore values from removed element.
+			// We need to restore these values manually.
+			testUtils.sinon.restore();
 			iframeAncestor.remove();
 		} );