; * test/lisp/tab-bar-tests.el (tab-bar-tests-quit-restore-window): Fix it.

This commit is contained in:
Juri Linkov 2026-08-17 21:27:17 +03:00
parent f7af6aba5d
commit 426dca6849

View file

@ -71,6 +71,15 @@
(pop-up-frame-alist frame-params)
(frame-auto-hide-function 'delete-frame))
;; After commit 293eaf323a0 (bug#81575) 'frame-deletable-p'
;; checks if frames are on the same terminal. But in this test
;; the first frame F1 is on initial_terminal, but other created
;; frames are on #<terminal 1 on /dev/tty>. So create a new frame
;; on the same terminal as other created frames, and delete
;; the initial frame that is on another terminal.
(make-frame pop-up-frame-alist)
(delete-frame (car (last (frame-list))) nil)
;; 1.1. 'quit-restore-window' should delete the frame
;; from initial window (bug#59862)
(progn