Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge branch t/ckeditor5-engine/1555
Browse files Browse the repository at this point in the history
Internal: Use built-in factories of range, position and selection classes. Avoid importing things from the engine. See ckeditor/ckeditor5-engine#1555.
  • Loading branch information
Reinmar committed Nov 1, 2018
2 parents 84580ad + a4a8dbd commit 35eaef5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/clipboardobserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import ClipboardObserver from '../src/clipboardobserver';
import View from '@ckeditor/ckeditor5-engine/src/view/view';
import DowncastWriter from '@ckeditor/ckeditor5-engine/src/view/downcastwriter';
import Range from '@ckeditor/ckeditor5-engine/src/view/range';
import Position from '@ckeditor/ckeditor5-engine/src/view/position';
import DataTransfer from '../src/datatransfer';
import createViewRoot from '@ckeditor/ckeditor5-engine/tests/view/_utils/createroot';

Expand All @@ -24,11 +22,11 @@ describe( 'ClipboardObserver', () => {

// Create view and DOM structures.
el = writer.createContainerElement( 'p' );
writer.insert( Position.createAt( root, 0 ), el );
writer.insert( writer.createPositionAt( root, 0 ), el );
view.domConverter.viewToDom( root, document, { withChildren: true, bind: true } );

doc.selection._setTo( el, 0 );
range = new Range( new Position( root, 1 ) );
range = writer.createRange( writer.createPositionAt( root, 1 ) );
// Just making sure that the following tests will check anything.
expect( range.isEqual( doc.selection.getFirstRange() ) ).to.be.false;

Expand Down

0 comments on commit 35eaef5

Please sign in to comment.