Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Removed changing view root name from VirtualTestEditor.
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarwrobel committed Jan 9, 2018
1 parent 16129e5 commit eba416f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
10 changes: 1 addition & 9 deletions tests/_utils-tests/virtualtesteditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,8 @@ describe( 'VirtualTestEditor', () => {
const editor = new VirtualTestEditor( { foo: 1 } );

expect( editor ).to.be.instanceof( StandardEditor );

expect( editor.config.get( 'foo' ) ).to.equal( 1 );
} );

it( 'creates model and view roots', () => {
const editor = new VirtualTestEditor( { foo: 1 } );

expect( editor.model.document.getRoot() ).to.have.property( 'name', '$root' );
expect( editor.editing.view.getRoot() ).to.have.property( 'name', 'div' );
expect( editor.data.processor ).to.be.instanceof( HtmlDataProcessor );
expect( editor.config.get( 'foo' ) ).to.equal( 1 );
} );
} );

Expand Down
4 changes: 0 additions & 4 deletions tests/_utils/virtualtesteditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ export default class VirtualTestEditor extends StandardEditor {
super( null, config );

this.data.processor = new HtmlDataProcessor();

// Lets change view root element name from $root to div.
// This will look more friendly in view tests.
this.editing.view.getRoot().name = 'div';
}

/**
Expand Down

0 comments on commit eba416f

Please sign in to comment.