Browse Source

Extended Image manual test to check delete and backspace handling.

Szymon Kupś 9 years ago
parent
commit
c932119959
1 changed files with 9 additions and 0 deletions
  1. 9 0
      packages/ckeditor5-image/tests/manual/image.md

+ 9 - 0
packages/ckeditor5-image/tests/manual/image.md

@@ -3,3 +3,12 @@
 * Two images with CKEditor logo should be loaded.
 * Hovering over image should apply yellow outline.
 * Clicking on image should apply blue outline which should not change when hovering over.
+
+### Deleting
+
+* Click image and press <kbd>delete</kbd> (<kbd>forward delete</kbd> on Mac) - empty paragraph should be created in place of image.
+* Click image and press <kbd>backspace</kbd> (<kbd>delete</kbd> on Mac)  - empty paragraph should be created in place of image.
+* Place selection at the end of the first paragraph and press <kbd>delete</kbd> (<kbd>forward delete</kbd> on Mac) - image should be selected. Second press should delete it.
+* Place selection at the beginning of the second paragraph and press <kbd>backspace</kbd> (<kbd>delete</kbd> on Mac) - image should be selected. Second press should delete it.
+* Place selection in an empty paragraph before image and press <kbd>delete</kbd> (<kbd>forward delete</kbd> on Mac) - image should be selected and paragraph removed.
+* Place selection in an empty paragraph after image and press <kbd>backspace</kbd> (<kbd>delete</kbd> on Mac) - image should be selected and paragraph removed.