|
@@ -185,5 +185,15 @@ describe( 'Table feature – integration', () => {
|
|
|
[ '<blockQuote><paragraph>Foo[]Bar</paragraph></blockQuote>' ]
|
|
[ '<blockQuote><paragraph>Foo[]Bar</paragraph></blockQuote>' ]
|
|
|
] ) );
|
|
] ) );
|
|
|
} );
|
|
} );
|
|
|
|
|
+
|
|
|
|
|
+ it( 'should not make the Model#hasContent() method return "true" when an empty table cell is selected', () => {
|
|
|
|
|
+ setModelData( editor.model, '<table>' +
|
|
|
|
|
+ '<tableRow>' +
|
|
|
|
|
+ '[<tableCell><paragraph></paragraph></tableCell>]' +
|
|
|
|
|
+ '</tableRow>' +
|
|
|
|
|
+ '</table>' );
|
|
|
|
|
+
|
|
|
|
|
+ expect( editor.model.hasContent( editor.model.document.selection.getFirstRange() ) ).to.be.false;
|
|
|
|
|
+ } );
|
|
|
} );
|
|
} );
|
|
|
} );
|
|
} );
|