Remove protect-visible-buffer tests
This commit is contained in:
parent
13bac97c07
commit
82ef3e987b
1 changed files with 0 additions and 26 deletions
|
@ -4,32 +4,6 @@
|
||||||
(require 'core-ui)
|
(require 'core-ui)
|
||||||
|
|
||||||
(describe "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"
|
(describe "doom|protect-fallback-buffer"
|
||||||
:var (kill-buffer-query-functions a b)
|
:var (kill-buffer-query-functions a b)
|
||||||
(before-all
|
(before-all
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue