|
|
@@ -92,6 +92,7 @@ describe( 'Heading integration', () => {
|
|
|
|
|
|
describe( 'with the undo feature', () => {
|
|
|
it( 'does not create undo steps when applied to an existing heading (collapsed selection)', () => {
|
|
|
+ // Ensure no undo step by using a transparent batch.
|
|
|
model.enqueueChange( 'transparent', () => {
|
|
|
setModelData( model, '<heading1>foo[]bar</heading1>' );
|
|
|
} );
|
|
|
@@ -103,6 +104,7 @@ describe( 'Heading integration', () => {
|
|
|
} );
|
|
|
|
|
|
it( 'does not create undo steps when applied to an existing heading (non–collapsed selection)', () => {
|
|
|
+ // Ensure no undo step by using a transparent batch.
|
|
|
model.enqueueChange( 'transparent', () => {
|
|
|
setModelData( model, '<heading1>[foo</heading1><heading1>bar]</heading1>' );
|
|
|
} );
|