|
|
@@ -49,7 +49,7 @@ describe( 'Typing – bogus BR integration', () => {
|
|
|
setData( editor.model, '<paragraph>Foo[]</paragraph>' );
|
|
|
} );
|
|
|
|
|
|
- editor.model.document.once( 'changesDone', () => {
|
|
|
+ editor.model.document.once( 'change', () => {
|
|
|
expect( editor.getData() ).to.equal( '<p>Foo </p>' );
|
|
|
done();
|
|
|
}, { priority: 'low' } );
|
|
|
@@ -63,7 +63,7 @@ describe( 'Typing – bogus BR integration', () => {
|
|
|
setData( editor.model, '<paragraph>[]</paragraph>' );
|
|
|
} );
|
|
|
|
|
|
- editor.model.document.once( 'changesDone', () => {
|
|
|
+ editor.model.document.once( 'change', () => {
|
|
|
expect( editor.getData() ).to.equal( '<p> </p>' );
|
|
|
done();
|
|
|
}, { priority: 'low' } );
|
|
|
@@ -77,7 +77,7 @@ describe( 'Typing – bogus BR integration', () => {
|
|
|
setData( editor.model, '<paragraph><$text bold="true">Foo[]</$text></paragraph>' );
|
|
|
} );
|
|
|
|
|
|
- editor.model.document.once( 'changesDone', () => {
|
|
|
+ editor.model.document.once( 'change', () => {
|
|
|
expect( editor.getData() ).to.equal( '<p><strong>Foo </strong></p>' );
|
|
|
done();
|
|
|
}, { priority: 'low' } );
|
|
|
@@ -95,7 +95,7 @@ describe( 'Typing – bogus BR integration', () => {
|
|
|
setData( editor.model, '<paragraph>Foo[]</paragraph>' );
|
|
|
} );
|
|
|
|
|
|
- editor.model.document.once( 'changesDone', () => {
|
|
|
+ editor.model.document.once( 'change', () => {
|
|
|
expect( editor.getData() ).to.equal( '<p>Foo </p>' );
|
|
|
done();
|
|
|
}, { priority: 'low' } );
|
|
|
@@ -121,7 +121,7 @@ describe( 'Typing – bogus BR integration', () => {
|
|
|
setData( editor.model, '<paragraph>Foo[]</paragraph>' );
|
|
|
} );
|
|
|
|
|
|
- editor.model.document.once( 'changesDone', () => {
|
|
|
+ editor.model.document.once( 'change', () => {
|
|
|
expect( editor.getData() ).to.equal( '<p>Foo </p>' );
|
|
|
done();
|
|
|
}, { priority: 'low' } );
|
|
|
@@ -150,7 +150,7 @@ describe( 'Typing – bogus BR integration', () => {
|
|
|
setData( editor.model, '<paragraph>Foo hous[]</paragraph>' );
|
|
|
} );
|
|
|
|
|
|
- editor.model.document.once( 'changesDone', () => {
|
|
|
+ editor.model.document.once( 'change', () => {
|
|
|
expect( editor.getData() ).to.equal( '<p>Foo house</p>' );
|
|
|
done();
|
|
|
}, { priority: 'low' } );
|