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

Commit

Permalink
Tests: Aligned BalloonToolbar tests to the view root attribue renderi…
Browse files Browse the repository at this point in the history
…ng controlled by engine.
  • Loading branch information
oleq committed Jan 29, 2019
1 parent 1f961f1 commit 2d08713
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/toolbar/balloon/balloontoolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ describe( 'BalloonToolbar', () => {

const targetViewRange = editingView.domConverter.viewRangeToDom.lastCall.args[ 0 ];

expect( viewStringify( targetViewRange.root, targetViewRange ) ).to.equal( '<div><p>bar</p><p>{bi}z</p></div>' );
expect( viewStringify( targetViewRange.root, targetViewRange, { ignoreRoot: true } ) ).to.equal( '<p>bar</p><p>{bi}z</p>' );
expect( targetRect ).to.deep.equal( forwardSelectionRect );
} );

Expand Down Expand Up @@ -289,7 +289,7 @@ describe( 'BalloonToolbar', () => {

const targetViewRange = editingView.domConverter.viewRangeToDom.lastCall.args[ 0 ];

expect( viewStringify( targetViewRange.root, targetViewRange ) ).to.equal( '<div><p>b{ar}</p><p>biz</p></div>' );
expect( viewStringify( targetViewRange.root, targetViewRange, { ignoreRoot: true } ) ).to.equal( '<p>b{ar}</p><p>biz</p>' );
expect( targetRect ).to.deep.equal( backwardSelectionRect );
} );

Expand Down

0 comments on commit 2d08713

Please sign in to comment.