Skip to content

Commit

Permalink
Review fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
niegowski committed Sep 26, 2023
1 parent a39c9bc commit e5ca348
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ describe( 'DocumentListEditing integrations: clipboard copy & paste', () => {
expect( hasAnyListAttribute( data.content.getChild( 0 ) ) ).to.be.false;
} );

clipboard.fireOutputTransformationEvent( createDataTransfer(), model.document.selection, 'copy' );
clipboard._fireOutputTransformationEvent( createDataTransfer(), model.document.selection, 'copy' );
} );

it( 'should return an object stripped of list attributes, if that object was selected as a middle list item block', () => {
Expand All @@ -155,7 +155,7 @@ describe( 'DocumentListEditing integrations: clipboard copy & paste', () => {
expect( hasAnyListAttribute( data.content.getChild( 0 ) ) ).to.be.false;
} );

clipboard.fireOutputTransformationEvent( createDataTransfer(), model.document.selection, 'copy' );
clipboard._fireOutputTransformationEvent( createDataTransfer(), model.document.selection, 'copy' );
} );

it( 'should strip other list attributes', () => {
Expand All @@ -168,7 +168,7 @@ describe( 'DocumentListEditing integrations: clipboard copy & paste', () => {
expect( hasAnyListAttribute( data.content.getChild( 0 ) ) ).to.be.false;
} );

clipboard.fireOutputTransformationEvent( createDataTransfer(), model.document.selection, 'copy' );
clipboard._fireOutputTransformationEvent( createDataTransfer(), model.document.selection, 'copy' );
} );

it( 'should return nodes stripped of list attributes, if more than a single block of the same item was selected', () => {
Expand All @@ -183,7 +183,7 @@ describe( 'DocumentListEditing integrations: clipboard copy & paste', () => {
expect( Array.from( data.content.getChildren() ).some( isListItemBlock ) ).to.be.false;
} );

clipboard.fireOutputTransformationEvent( createDataTransfer(), model.document.selection, 'copy' );
clipboard._fireOutputTransformationEvent( createDataTransfer(), model.document.selection, 'copy' );
} );

it( 'should return just a text, if a list item block was partially selected', () => {
Expand Down Expand Up @@ -258,7 +258,7 @@ describe( 'DocumentListEditing integrations: clipboard copy & paste', () => {
expect( Array.from( data.content.getChildren() ).some( hasAnyListAttribute ) ).to.be.false;
} );

clipboard.fireOutputTransformationEvent(
clipboard._fireOutputTransformationEvent(
createDataTransfer(), model.createSelection( model.document.getRoot(), 'in' ), 'copy' );
} );

Expand All @@ -281,7 +281,7 @@ describe( 'DocumentListEditing integrations: clipboard copy & paste', () => {
);
} );

clipboard.fireOutputTransformationEvent(
clipboard._fireOutputTransformationEvent(
createDataTransfer(), model.createSelection( model.document.getRoot(), 'in' ), 'copy' );
} );
} );
Expand Down Expand Up @@ -738,7 +738,7 @@ describe( 'DocumentListEditing integrations: clipboard copy & paste', () => {
);
} );

clipboard.fireOutputTransformationEvent( dataTransferMock, draggedSelection, 'dragstart' );
clipboard._fireOutputTransformationEvent( dataTransferMock, draggedSelection, 'dragstart' );
} );

it( 'should return a list item, when a whole list item was selected and' +
Expand Down Expand Up @@ -769,7 +769,7 @@ describe( 'DocumentListEditing integrations: clipboard copy & paste', () => {
);
} );

clipboard.fireOutputTransformationEvent( dataTransferMock, draggedSelection, 'dragstart' );
clipboard._fireOutputTransformationEvent( dataTransferMock, draggedSelection, 'dragstart' );
} );

it( 'should return all selected content, even when end of selection is positioned in first place in next paragraph', () => {
Expand Down Expand Up @@ -799,7 +799,7 @@ describe( 'DocumentListEditing integrations: clipboard copy & paste', () => {
);
} );

clipboard.fireOutputTransformationEvent( dataTransferMock, draggedSelection, 'dragstart' );
clipboard._fireOutputTransformationEvent( dataTransferMock, draggedSelection, 'dragstart' );
} );
} );

Expand Down

0 comments on commit e5ca348

Please sign in to comment.