]> code.delx.au - gnu-emacs/blobdiff - test/automated/core-elisp-tests.el
lisp/emacs-lisp/eieio*.el: Reduce object header to 1 slot
[gnu-emacs] / test / automated / core-elisp-tests.el
index 40169b836d5bc0ac66023999d62336a645ee357d..67ed6b659622590d40d628a45ed647b041f8790c 100644 (file)
@@ -1,6 +1,6 @@
 ;;; core-elisp-tests.el --- Testing some core Elisp rules
 
-;; Copyright (C) 2013 Free Software Foundation, Inc.
+;; Copyright (C) 2013-2014 Free Software Foundation, Inc.
 
 ;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
 ;; Keywords:
                          c-e-x)
                    '(1 2)))))
 
+(ert-deftest core-elisp-test-window-configurations ()
+  "Test properties of window-configurations."
+  (let ((wc (current-window-configuration)))
+    (with-current-buffer (window-buffer (frame-selected-window))
+      (push-mark)
+      (activate-mark))
+    (set-window-configuration wc)
+    (should (or (not mark-active) (mark)))))
+
 (provide 'core-elisp-tests)
 ;;; core-elisp-tests.el ends here