Documentation
¶
Overview ¶
Package wallpaper supports interaction with ChromeOS wallpaper app.
Index ¶
- func Back(ui *uiauto.Context) uiauto.Action
- func CancelFullscreenPreview(ui *uiauto.Context) uiauto.Action
- func CloseWallpaperPicker() uiauto.Action
- func ConfirmFullscreenPreview(ui *uiauto.Context) uiauto.Action
- func MinimizeWallpaperPicker(ui *uiauto.Context) uiauto.Action
- func OpenWallpaperPicker(ui *uiauto.Context) uiauto.Action
- func SelectCollection(ui *uiauto.Context, collection string) uiauto.Action
- func SelectImage(ui *uiauto.Context, image string) uiauto.Action
- func ValidateBackground(cr *chrome.Chrome, clr color.Color, expectedPercent int) uiauto.Action
- func ValidateDiff(img1, img2 image.Image, expectedPercent int) error
- func WaitForWallpaperWithName(ui *uiauto.Context, name string) uiauto.Action
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Back ¶
Back presses the back button in the wallpaper app. Used to navigate from an individual collection to the collections list.
func CancelFullscreenPreview ¶
CancelFullscreenPreview presses the "Exit wallpaper preview" button while in fullscreen preview mode.
func CloseWallpaperPicker ¶
CloseWallpaperPicker returns an action to close the wallpaper picker via the Ctrl+W shortcut.
func ConfirmFullscreenPreview ¶
ConfirmFullscreenPreview presses the "Set as wallpaper" button while in fullscreen preview mode.
func MinimizeWallpaperPicker ¶
MinimizeWallpaperPicker returns an action to minimize the wallpaper picker.
func OpenWallpaperPicker ¶
OpenWallpaperPicker returns an action to open the wallpaper app.
func SelectCollection ¶
SelectCollection returns an action to select the collection with the given collection name.
func SelectImage ¶
SelectImage returns an action to select the image with the given image title.
func ValidateBackground ¶
ValidateBackground takes a screenshot and check the percentage of the clr in the image, returns error if it's less than expectedPercent%.
func ValidateDiff ¶
ValidateDiff checks the diff percentage between 2 images and returns error if the percentage is less than expectedPercent.
Types ¶
This section is empty.