Package limn.testing.a11y
Interface PopupOwnerSubject
public interface PopupOwnerSubject
A widget of the
POPUP_OWNER shape as the popup-owner contract sees it:
something that opens a popup, which the contract can build fresh, closed, and read the open
state of through the widget's own API.-
Method Summary
-
Method Details
-
build
Widget<?> build()Builds a fresh widget, closed, and returns the root to bind. -
widget
Widget<?> widget()- Returns:
- the widget
build()made last: the owner itself
-
isOpen
boolean isOpen()- Returns:
- whether the API says the popup is open now
-
close
void close()Closes the popup through the API, as an application would. -
disclosesInPlace
default boolean disclosesInPlace()- Returns:
- true for a disclosure, which opens its own content in place (an expander's
header) rather than a popup: of the same shape, it says no
HAS_POPUP, and the contract finds it by its expand facet instead
-