Add terminal drop overlay container regression test
This commit is contained in:
parent
90ca63690a
commit
c7bbb72e09
2 changed files with 41 additions and 62 deletions
|
|
@ -6716,6 +6716,22 @@ final class GhosttySurfaceScrollView: NSView {
|
|||
)
|
||||
}
|
||||
|
||||
struct DebugDropZoneOverlayState {
|
||||
let isHidden: Bool
|
||||
let frame: CGRect
|
||||
let isAttachedToHostedView: Bool
|
||||
let isAttachedToParentContainer: Bool
|
||||
}
|
||||
|
||||
func debugDropZoneOverlayState() -> DebugDropZoneOverlayState {
|
||||
DebugDropZoneOverlayState(
|
||||
isHidden: dropZoneOverlayView.isHidden,
|
||||
frame: dropZoneOverlayView.frame,
|
||||
isAttachedToHostedView: dropZoneOverlayView.superview === self,
|
||||
isAttachedToParentContainer: dropZoneOverlayView.superview === superview
|
||||
)
|
||||
}
|
||||
|
||||
func debugHasSearchOverlay() -> Bool {
|
||||
guard let overlay = searchOverlayHostingView else { return false }
|
||||
return overlay.superview === self && !overlay.isHidden
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue