From f131edbaeaa0f69c9b4137a5c8d55e47f69b45ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Go=C5=82aszewski?= Date: Wed, 19 Feb 2020 15:18:49 +0100 Subject: [PATCH 1/3] Add missing StylesProcessor instance. --- tests/editorwatchdog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/editorwatchdog.js b/tests/editorwatchdog.js index 24ce40d..a73d662 100644 --- a/tests/editorwatchdog.js +++ b/tests/editorwatchdog.js @@ -937,7 +937,7 @@ describe( 'EditorWatchdog', () => { constructor( sourceElements, config ) { super( config ); - this.data.processor = new HtmlDataProcessor(); + this.data.processor = new HtmlDataProcessor( this.stylesProcessor ); // Create a root for each source element. for ( const rootName of Object.keys( sourceElements ) ) { From f81371368120ca6b9f5e070cfb2bd97acbb274e9 Mon Sep 17 00:00:00 2001 From: Kamil Piechaczek Date: Thu, 20 Feb 2020 13:55:37 +0100 Subject: [PATCH 2/3] Aligned to changes in Editor class. --- tests/editorwatchdog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/editorwatchdog.js b/tests/editorwatchdog.js index a73d662..e2e2874 100644 --- a/tests/editorwatchdog.js +++ b/tests/editorwatchdog.js @@ -937,7 +937,7 @@ describe( 'EditorWatchdog', () => { constructor( sourceElements, config ) { super( config ); - this.data.processor = new HtmlDataProcessor( this.stylesProcessor ); + this.data.processor = new HtmlDataProcessor( this.data.stylesProcessor ); // Create a root for each source element. for ( const rootName of Object.keys( sourceElements ) ) { From eded79f5995b8864572b493970079317bf26b970 Mon Sep 17 00:00:00 2001 From: Kamil Piechaczek Date: Mon, 24 Feb 2020 16:14:49 +0100 Subject: [PATCH 3/3] Requested changes during the review. --- tests/editorwatchdog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/editorwatchdog.js b/tests/editorwatchdog.js index e2e2874..0c491f8 100644 --- a/tests/editorwatchdog.js +++ b/tests/editorwatchdog.js @@ -937,7 +937,7 @@ describe( 'EditorWatchdog', () => { constructor( sourceElements, config ) { super( config ); - this.data.processor = new HtmlDataProcessor( this.data.stylesProcessor ); + this.data.processor = new HtmlDataProcessor( this.editing.view.document ); // Create a root for each source element. for ( const rootName of Object.keys( sourceElements ) ) {