|
@@ -114,8 +114,8 @@ describe( 'BlockQuote integration', () => {
|
|
|
setModelData( model,
|
|
setModelData( model,
|
|
|
'<paragraph>x</paragraph>' +
|
|
'<paragraph>x</paragraph>' +
|
|
|
'<blockQuote>' +
|
|
'<blockQuote>' +
|
|
|
- '<listItem indent="0" type="bulleted">a</listItem>' +
|
|
|
|
|
- '<listItem indent="0" type="bulleted">[]</listItem>' +
|
|
|
|
|
|
|
+ '<listItem listIndent="0" listType="bulleted">a</listItem>' +
|
|
|
|
|
+ '<listItem listIndent="0" listType="bulleted">[]</listItem>' +
|
|
|
'</blockQuote>' +
|
|
'</blockQuote>' +
|
|
|
'<paragraph>x</paragraph>'
|
|
'<paragraph>x</paragraph>'
|
|
|
);
|
|
);
|
|
@@ -127,7 +127,7 @@ describe( 'BlockQuote integration', () => {
|
|
|
expect( getModelData( model ) ).to.equal(
|
|
expect( getModelData( model ) ).to.equal(
|
|
|
'<paragraph>x</paragraph>' +
|
|
'<paragraph>x</paragraph>' +
|
|
|
'<blockQuote>' +
|
|
'<blockQuote>' +
|
|
|
- '<listItem indent="0" type="bulleted">a</listItem>' +
|
|
|
|
|
|
|
+ '<listItem listIndent="0" listType="bulleted">a</listItem>' +
|
|
|
'<paragraph>[]</paragraph>' +
|
|
'<paragraph>[]</paragraph>' +
|
|
|
'</blockQuote>' +
|
|
'</blockQuote>' +
|
|
|
'<paragraph>x</paragraph>'
|
|
'<paragraph>x</paragraph>'
|
|
@@ -399,7 +399,7 @@ describe( 'BlockQuote integration', () => {
|
|
|
// There is a test which checks whether blockQuote will split the list items instead of merging with.
|
|
// There is a test which checks whether blockQuote will split the list items instead of merging with.
|
|
|
describe( 'compatibility with lists', () => {
|
|
describe( 'compatibility with lists', () => {
|
|
|
it( 'does not merge the paragraph with list item', () => {
|
|
it( 'does not merge the paragraph with list item', () => {
|
|
|
- setModelData( model, '<listItem indent="0" type="bulleted">fo[]o</listItem>' );
|
|
|
|
|
|
|
+ setModelData( model, '<listItem listIndent="0" listType="bulleted">fo[]o</listItem>' );
|
|
|
|
|
|
|
|
const df = parseModel(
|
|
const df = parseModel(
|
|
|
'<blockQuote><paragraph>xxx</paragraph></blockQuote><heading1>yyy</heading1>',
|
|
'<blockQuote><paragraph>xxx</paragraph></blockQuote><heading1>yyy</heading1>',
|
|
@@ -409,7 +409,7 @@ describe( 'BlockQuote integration', () => {
|
|
|
model.insertContent( df, model.document.selection );
|
|
model.insertContent( df, model.document.selection );
|
|
|
|
|
|
|
|
expect( getModelData( model ) ).to.equal(
|
|
expect( getModelData( model ) ).to.equal(
|
|
|
- '<listItem indent="0" type="bulleted">fo</listItem>' +
|
|
|
|
|
|
|
+ '<listItem listIndent="0" listType="bulleted">fo</listItem>' +
|
|
|
'<blockQuote>' +
|
|
'<blockQuote>' +
|
|
|
'<paragraph>xxx</paragraph>' +
|
|
'<paragraph>xxx</paragraph>' +
|
|
|
'</blockQuote>' +
|
|
'</blockQuote>' +
|