wallpaper

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

Package wallpaper supports interaction with ChromeOS wallpaper app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Back

func Back(ui *uiauto.Context) uiauto.Action

Back presses the back button in the wallpaper app. Used to navigate from an individual collection to the collections list.

func CancelFullscreenPreview

func CancelFullscreenPreview(ui *uiauto.Context) uiauto.Action

CancelFullscreenPreview presses the "Exit wallpaper preview" button while in fullscreen preview mode.

func CloseWallpaperPicker

func CloseWallpaperPicker() uiauto.Action

CloseWallpaperPicker returns an action to close the wallpaper picker via the Ctrl+W shortcut.

func ConfirmFullscreenPreview

func ConfirmFullscreenPreview(ui *uiauto.Context) uiauto.Action

ConfirmFullscreenPreview presses the "Set as wallpaper" button while in fullscreen preview mode.

func MinimizeWallpaperPicker

func MinimizeWallpaperPicker(ui *uiauto.Context) uiauto.Action

MinimizeWallpaperPicker returns an action to minimize the wallpaper picker.

func OpenWallpaperPicker

func OpenWallpaperPicker(ui *uiauto.Context) uiauto.Action

OpenWallpaperPicker returns an action to open the wallpaper app.

func SelectCollection

func SelectCollection(ui *uiauto.Context, collection string) uiauto.Action

SelectCollection returns an action to select the collection with the given collection name.

func SelectImage

func SelectImage(ui *uiauto.Context, image string) uiauto.Action

SelectImage returns an action to select the image with the given image title.

func ValidateBackground

func ValidateBackground(cr *chrome.Chrome, clr color.Color, expectedPercent int) uiauto.Action

ValidateBackground takes a screenshot and check the percentage of the clr in the image, returns error if it's less than expectedPercent%.

func ValidateDiff

func ValidateDiff(img1, img2 image.Image, expectedPercent int) error

ValidateDiff checks the diff percentage between 2 images and returns error if the percentage is less than expectedPercent.

func WaitForWallpaperWithName

func WaitForWallpaperWithName(ui *uiauto.Context, name string) uiauto.Action

WaitForWallpaperWithName checks that a text node exists inside the wallpaper app with the given name. Requires the wallpaper app to be open.

Types

This section is empty.

Directories

Path Synopsis
Package constants contains values used across wallpaper tests.
Package constants contains values used across wallpaper tests.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL