' ); @@ -307,7 +308,8 @@ describe( 'ImageSizeAttributes', () => { expect( getViewData( view, { withoutSelection: true } ) ).to.equal( '
' ); @@ -489,7 +491,8 @@ describe( 'ImageSizeAttributes', () => { expect( getViewData( view, { withoutSelection: true } ) ).to.equal( '' ); @@ -507,7 +510,8 @@ describe( 'ImageSizeAttributes', () => { expect( getViewData( view, { withoutSelection: true } ) ).to.equal( '' ); diff --git a/tests/_data/data-sets/ghs.js b/tests/_data/data-sets/ghs.js new file mode 100644 index 00000000000..3c495d5ed5f --- /dev/null +++ b/tests/_data/data-sets/ghs.js @@ -0,0 +1,83 @@ +/** + * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options + */ + +// This is main Wikipedia page source copied four times. This is to test content with a lot of messy / unsupported markup. +// After it is loaded in the editor, it is ~150 A4 pages (however there are a lot of very short paragraphs and list items). + +/* eslint-disable */ + +const initialData = + `
Feature paragraph
+ +Feature bold
+Feature italic
+Feature strike
Feature underline
+Feature code
Feature subscript
+Feature superscript
+ + + + +Mark feature
+ +Font feature
+ ++ + + +Blockquote Feature
Code Block
+
+
+ empty inline at start
+Text with empty inline inside
+Text with empty inline at the end
`; + +export default function makeData() { + return initialData.repeat( 250 ); +} diff --git a/tests/_data/data-sets/index.js b/tests/_data/data-sets/index.js index 34bacb88260..939586c814f 100644 --- a/tests/_data/data-sets/index.js +++ b/tests/_data/data-sets/index.js @@ -3,14 +3,22 @@ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ -import paragraphs from './paragraphs.js'; -import lists from './lists.js'; -import tableHuge from './table-huge.js'; import formattingLongP from './formatting-long-paragraphs.js'; +import ghs from './ghs.js'; import inlineStyles from './inline-styles.js'; +import lists from './lists.js'; import mixed from './mixed.js'; +import paragraphs from './paragraphs.js'; +import tableHuge from './table-huge.js'; import wiki from './wiki.js'; export default { - paragraphs, lists, tableHuge, formattingLongP, inlineStyles, mixed, wiki + formattingLongP, + ghs, + inlineStyles, + lists, + mixed, + paragraphs, + tableHuge, + wiki };