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

Commit

Permalink
Tests: Re-written test so it is less prone to browser quirks.
Browse files Browse the repository at this point in the history
  • Loading branch information
scofalik committed Feb 18, 2019
1 parent 539a0aa commit cae80cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/view/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1935,14 +1935,14 @@ describe( 'Renderer', () => {

let container = document.getSelection().anchorNode;

expect( container.parentElement ).to.equal( domRoot );
expect( domRoot.contains( container ) ).to.be.true;

selection._setTo( viewEditable, 'in', { fake: true, label: 'fake selection' } );
renderer.render();

container = document.getSelection().anchorNode;

expect( container.parentElement ).to.equal( domEditable );
expect( domEditable.contains( container ) ).to.be.true;
} );

it( 'should bind fake selection container to view selection', () => {
Expand Down

0 comments on commit cae80cb

Please sign in to comment.