Parcourir la source

Add an inactive test for #152

This issue is awaiting additional information from the reporter.
Ryan C. Thompson il y a 7 ans
Parent
commit
059d94278d
1 fichiers modifiés avec 24 ajouts et 2 suppressions
  1. 24 2
      tests/test-ido-completing-read+.el

+ 24 - 2
tests/test-ido-completing-read+.el

@@ -1031,8 +1031,30 @@ also accept a quoted list for the sake of convenience."
           (expect
            (with-simulated-input "RET"
              (ido-completing-read+ "Prompt: " 'def-nil-collection nil t))
-           :to-equal "blue"))))))
-
+           :to-equal "blue"))))
 
+    ;; Test is currently disabled pending additional information
+    (xit "should not hang or error when deleting characters in `org-refile' (issue #152)"
+      (expect
+       (progn
+         (ido-ubiquitous-mode 1)
+         (save-excursion
+           (with-temp-buffer
+             (org-mode)
+             (insert (s-trim "
+    * Heading 1
+    ** Subheading 1.1
+    ** Subheading 1.2
+    ** Subheading 1.3
+    * Heading 2
+    * Heading 3
+    "))
+             (goto-char (point-max))
+             ;; TODO Figure out what else needs to be set up to call
+             ;; `org-refile'
+             (with-simulated-input
+                 "Heading DEL DEL DEL DEL DEL RET"
+               (command-execute 'org-refile)))))
+       :not :to-throw))))
 
 ;;; test-ido-completing-read+.el ends here