emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-24 fd4e65e: Added missing test for previous commit


From: Fabián Ezequiel Gallina
Subject: [Emacs-diffs] emacs-24 fd4e65e: Added missing test for previous commit
Date: Tue, 27 Jan 2015 03:35:14 +0000

branch: emacs-24
commit fd4e65e4ae76eb59a990fc72bce791a50e494338
Author: Fabián Ezequiel Gallina <address@hidden>
Commit: Fabián Ezequiel Gallina <address@hidden>

    Added missing test for previous commit
---
 test/automated/python-tests.el |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/test/automated/python-tests.el b/test/automated/python-tests.el
index 5b77a1d..5bddfe8 100644
--- a/test/automated/python-tests.el
+++ b/test/automated/python-tests.el
@@ -2089,6 +2089,23 @@ def f():
    (python-nav-backward-up-list)
    (should (looking-at "def f():"))))
 
+(ert-deftest python-indent-dedent-line-backspace-1 ()
+  "Check de-indentation on first call.  Bug#18319."
+  (python-tests-with-temp-buffer
+   "
+if True:
+    x ()
+    if False:
+"
+   (python-tests-look-at "if False:")
+   (call-interactively #'python-indent-dedent-line-backspace)
+   (should (zerop (current-indentation)))
+   ;; XXX: This should be a call to `undo' but it's triggering errors.
+   (insert "    ")
+   (should (= (current-indentation) 4))
+   (call-interactively #'python-indent-dedent-line-backspace)
+   (should (zerop (current-indentation)))))
+
 
 ;;; Shell integration
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]