From 82ef3e987b00d9853a1f024d04b85b65f6ea8165 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 17 Mar 2019 00:16:22 -0400 Subject: [PATCH] Remove protect-visible-buffer tests --- core/test/test-core-ui.el | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/core/test/test-core-ui.el b/core/test/test-core-ui.el index fec4d57c6..0ace0bc73 100644 --- a/core/test/test-core-ui.el +++ b/core/test/test-core-ui.el @@ -4,32 +4,6 @@ (require 'core-ui) (describe "core/ui" - (describe "doom|protect-visible-buffer" - :var (kill-buffer-query-functions wconf a b) - (before-each - (setq a (switch-to-buffer (get-buffer-create "a")) - b (get-buffer-create "b") - kill-buffer-query-functions '(doom|protect-visible-buffer) - wconf (current-window-configuration)) - (delete-other-windows)) - - (after-each - (let (kill-buffer-query-functions kill-buffer-hook) - (kill-buffer a) - (kill-buffer b)) - (set-window-configuration wconf)) - - (it "shouldn't kill buffers that are visible in more than one window" - (with-temp-buffer-window - (switch-to-buffer a) (split-window) - (switch-to-buffer b) (split-window) - (switch-to-buffer a) - (expect (kill-buffer) :to-be nil) - - (select-window (get-buffer-window b)) - (expect (kill-buffer))))) - - (describe "doom|protect-fallback-buffer" :var (kill-buffer-query-functions a b) (before-all