|
|
@@ -12,6 +12,17 @@ import ViewDocument from '/ckeditor5/engine/view/document.js';
|
|
|
describe( 'DomEventData', () => {
|
|
|
let viewDocument, viewBody, domRoot;
|
|
|
|
|
|
+ // Todo: the whole `before` hook can be removed.
|
|
|
+ // Depends on: https://github.com/ckeditor/ckeditor5-engine/issues/647
|
|
|
+ before( () => {
|
|
|
+ for ( const node of document.body.childNodes ) {
|
|
|
+ // Remove all <!-- Comments -->
|
|
|
+ if ( node.nodeType === 8 ) {
|
|
|
+ document.body.removeChild( node );
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } );
|
|
|
+
|
|
|
beforeEach( () => {
|
|
|
viewDocument = new ViewDocument();
|
|
|
|