Documentation
¶
Overview ¶
Package hiddenrun runs the reproduction of the issue "An app in the tray" (internal/issues, HiddenTrayName; step 65.1) in an app: it asks for the window to be minimized and reads IsMinimized at once, shows the window again, hides it (RegularWindowController.SetHidden), changes the state of a widget from a goroutine, as an event of an app does, and waits for the tree to be built with the new state, which the tooltip of its SystemTray shows. The app of the Linux display tests, of the Wine test and of the emulator test (examples/dev/hiddentray) and the browser test's app (internal/platform/web/desktoptest) share it, so that each platform runs the same steps.
It is plain Go with no OS tags and does not import testing: apps link it.
Index ¶
Constants ¶
const ( // Before is what the tray says until the state changes. Before = "connected" // After is what it says once the state changed, while the window is hidden. After = "connecting again" )
The two things that the tray of the reproduction says.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner is the reproduction in one app. Wrap goes around the app's content.
func (*Runner) Run ¶
func (r *Runner) Run(ctx context.Context, platform, hides string, wait time.Duration) issues.HiddenTrayReport
Run runs the reproduction and returns its report: platform and hides are the report's (what the runner calls the platform, and whether it hides windows). It waits for the app to be built, then does the steps of the issue, waiting at most wait for the build of the changed state. A step that could not run leaves its word of the report empty, which the check reports. It must not be called on the UI thread.