|
|
@@ -333,6 +333,10 @@ describe( 'view', () => {
|
|
|
|
|
|
view.attachDomRoot( domRoot );
|
|
|
|
|
|
+ view.change( writer => {
|
|
|
+ writer.setSelection( range );
|
|
|
+ } );
|
|
|
+
|
|
|
// Make sure the window will have to scroll to the domRoot.
|
|
|
Object.assign( domRoot.style, {
|
|
|
position: 'absolute',
|
|
|
@@ -340,10 +344,6 @@ describe( 'view', () => {
|
|
|
left: '-1000px'
|
|
|
} );
|
|
|
|
|
|
- view.change( writer => {
|
|
|
- writer.setSelection( range );
|
|
|
- } );
|
|
|
-
|
|
|
view.scrollToTheSelection();
|
|
|
sinon.assert.calledWithMatch( stub, sinon.match.number, sinon.match.number );
|
|
|
} );
|