From 25741a1e4a2c46e457c5b9b8fa536180b527cd6a Mon Sep 17 00:00:00 2001 From: sculpt0r Date: Wed, 20 Jul 2022 14:46:16 +0200 Subject: [PATCH] Ad manual test to prove #4931 bug --- .../selection/manual/optimizationlist.html | 39 +++++++++++++++++++ .../core/selection/manual/optimizationlist.md | 13 +++++++ 2 files changed, 52 insertions(+) create mode 100644 tests/core/selection/manual/optimizationlist.html create mode 100644 tests/core/selection/manual/optimizationlist.md diff --git a/tests/core/selection/manual/optimizationlist.html b/tests/core/selection/manual/optimizationlist.html new file mode 100644 index 00000000000..a47db99fec1 --- /dev/null +++ b/tests/core/selection/manual/optimizationlist.html @@ -0,0 +1,39 @@ +

Iframe editor

+
+
    +
  1. 1
  2. +
  3. 2 +
      +
    1. 1
    2. +
    +
  4. +
  5.  
  6. +
+ +
+ +

Divarea editor

+
+
    +
  1. 1
  2. +
  3. 2 +
      +
    1. 1
    2. +
    +
  4. +
  5.  
  6. +
+ +
+ + diff --git a/tests/core/selection/manual/optimizationlist.md b/tests/core/selection/manual/optimizationlist.md new file mode 100644 index 00000000000..b59bf819d53 --- /dev/null +++ b/tests/core/selection/manual/optimizationlist.md @@ -0,0 +1,13 @@ +@bender-tags: selection, 4.19.2, bug, 4931 +@bender-ui: collapsed +@bender-ckeditor-plugins: wysiwygarea, toolbar, elementspath, sourcearea, list, undo, div, table, image, basicstyles, format + + +1. Select entire content via `Ctrl+A` +2. Delete content with backspace key. + +**Expected** The entire list is removed from the editor + +**Unexpected** There are list leftovers in the editor + +3. Repeat steps in the second editor