@@ -0,0 +1,927 @@
+package org.fxmisc.richtext.api;%0A%0Aimport com.nitorcreations.junit.runners.NestedRunner;%0Aimport javafx.stage.Stage;%0Aimport org.fxmisc.richtext.InlineCssTextAreaAppTest;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0Aimport static javafx.scene.input.KeyCode.DELETE;%0A%0A@RunWith(NestedRunner.class)%0Apublic class MiscellaneousTests %7B%0A%0A    public class WhenAreaEndsWithEmptyLine extends InlineCssTextAreaAppTest %7B%0A%0A        @Override%0A        public void start(Stage stage) throws Exception %7B%0A            super.start(stage);%0A            area.replaceText(0, 0, %22abc%5Cn%22);%0A        %7D%0A%0A        public class AndAllTextIsSelected %7B%0A%0A            @Before%0A            public void selectAllText() %7B%0A                interact(() -%3E area.selectAll());%0A            %7D%0A%0A%0A            @Test%0A            public void pressingDeleteShouldNotThrowException() %7B%0A                push(DELETE);%0A            %7D%0A%0A        %7D%0A    %7D%0A%7D%0A

Add test: UI-initiated all-text deletion should not throw exception