8
0
Szymon Kupś 8 лет назад
Родитель
Сommit
ecaf3abc35

+ 1 - 1
packages/ckeditor5-engine/tests/view/view/jumpoverinlinefiller.js

@@ -31,7 +31,7 @@ describe( 'View', () => {
 
 		document.getSelection().removeAllRanges();
 
-		view.isFocused = true;
+		viewDocument.isFocused = true;
 	} );
 
 	afterEach( () => {

+ 1 - 1
packages/ckeditor5-engine/tests/view/view/jumpoveruielement.js

@@ -43,7 +43,7 @@ describe( 'Document', () => {
 		domSelection = document.getSelection();
 		domSelection.removeAllRanges();
 
-		view.isFocused = true;
+		viewDocument.isFocused = true;
 
 		foo = new ViewText( 'foo' );
 		bar = new ViewText( 'bar' );

+ 4 - 1
packages/ckeditor5-engine/tests/view/view/view.js

@@ -30,6 +30,8 @@ describe( 'view', () => {
 			contenteditable: 'true'
 		} );
 
+		document.body.appendChild( domRoot );
+
 		view = new View();
 		viewDocument = view.document;
 
@@ -61,6 +63,7 @@ describe( 'view', () => {
 	} );
 
 	afterEach( () => {
+		domRoot.remove();
 		view.destroy();
 	} );
 
@@ -238,7 +241,7 @@ describe( 'view', () => {
 			sinon.assert.notCalled( stub );
 		} );
 
-		it.only( 'scrolls to the first range in selection with an offset', () => {
+		it( 'scrolls to the first range in selection with an offset', () => {
 			const root = createViewRoot( viewDocument, 'div', 'main' );
 			const stub = testUtils.sinon.stub( global.window, 'scrollTo' );
 			const range = ViewRange.createIn( root );