|
@@ -130,16 +130,6 @@ describe( 'Writer', () => {
|
|
|
} );
|
|
} );
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
- describe( 'setTextData()', () => {
|
|
|
|
|
- it( 'should update the content for text node', () => {
|
|
|
|
|
- const textNode = writer.createText( 'foo' );
|
|
|
|
|
-
|
|
|
|
|
- writer.setTextData( 'bar', textNode );
|
|
|
|
|
-
|
|
|
|
|
- expect( textNode.data ).to.equal( 'bar' );
|
|
|
|
|
- } );
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
describe( 'setAttribute()', () => {
|
|
describe( 'setAttribute()', () => {
|
|
|
it( 'should set attribute on given element', () => {
|
|
it( 'should set attribute on given element', () => {
|
|
|
const element = writer.createAttributeElement( 'span' );
|
|
const element = writer.createAttributeElement( 'span' );
|