inputs

package
v0.0.0-...-9474aff Latest Latest
Warning

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

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

Documentation

Overview

Package inputs contains local Tast tests that exercise Chrome OS essential inputs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InputMethodManagement

func InputMethodManagement(ctx context.Context, s *testing.State)

func InputMethodShelf

func InputMethodShelf(ctx context.Context, s *testing.State)

func InputMethodShelfInputs

func InputMethodShelfInputs(ctx context.Context, s *testing.State)

func InputMethodSystemLanguage

func InputMethodSystemLanguage(ctx context.Context, s *testing.State)

func Manual

func Manual(ctx context.Context, s *testing.State)

func PhysicalKeyboardAutocorrect

func PhysicalKeyboardAutocorrect(ctx context.Context, s *testing.State)

func PhysicalKeyboardCapsLock

func PhysicalKeyboardCapsLock(ctx context.Context, s *testing.State)

func PhysicalKeyboardChangeInput

func PhysicalKeyboardChangeInput(ctx context.Context, s *testing.State)

func PhysicalKeyboardDeadKeys

func PhysicalKeyboardDeadKeys(ctx context.Context, s *testing.State)

func PhysicalKeyboardEmoji

func PhysicalKeyboardEmoji(ctx context.Context, s *testing.State)

func PhysicalKeyboardEmojiInformational

func PhysicalKeyboardEmojiInformational(ctx context.Context, s *testing.State)

func PhysicalKeyboardEmojiSearch

func PhysicalKeyboardEmojiSearch(ctx context.Context, s *testing.State)

func PhysicalKeyboardEmojiSuggestion

func PhysicalKeyboardEmojiSuggestion(ctx context.Context, s *testing.State)

func PhysicalKeyboardEnglishTyping

func PhysicalKeyboardEnglishTyping(ctx context.Context, s *testing.State)

func PhysicalKeyboardGrammarCheck

func PhysicalKeyboardGrammarCheck(ctx context.Context, s *testing.State)

func PhysicalKeyboardInputFields

func PhysicalKeyboardInputFields(ctx context.Context, s *testing.State)

func PhysicalKeyboardJapaneseTyping

func PhysicalKeyboardJapaneseTyping(ctx context.Context, s *testing.State)

func PhysicalKeyboardKoreanTyping

func PhysicalKeyboardKoreanTyping(ctx context.Context, s *testing.State)

func PhysicalKeyboardMultiwordSuggestion

func PhysicalKeyboardMultiwordSuggestion(ctx context.Context, s *testing.State)

func PhysicalKeyboardPinyinTyping

func PhysicalKeyboardPinyinTyping(ctx context.Context, s *testing.State)

func PhysicalKeyboardTransliterationTyping

func PhysicalKeyboardTransliterationTyping(ctx context.Context, s *testing.State)

func VirtualKeyboardAccent

func VirtualKeyboardAccent(ctx context.Context, s *testing.State)

func VirtualKeyboardAccessibility

func VirtualKeyboardAccessibility(ctx context.Context, s *testing.State)

func VirtualKeyboardAutoShift

func VirtualKeyboardAutoShift(ctx context.Context, s *testing.State)

func VirtualKeyboardAutocorrect

func VirtualKeyboardAutocorrect(ctx context.Context, s *testing.State)

func VirtualKeyboardChangeInput

func VirtualKeyboardChangeInput(ctx context.Context, s *testing.State)

func VirtualKeyboardDeadKeys

func VirtualKeyboardDeadKeys(ctx context.Context, s *testing.State)

func VirtualKeyboardEnglishSettings

func VirtualKeyboardEnglishSettings(ctx context.Context, s *testing.State)

func VirtualKeyboardFloat

func VirtualKeyboardFloat(ctx context.Context, s *testing.State)

func VirtualKeyboardGlideTyping

func VirtualKeyboardGlideTyping(ctx context.Context, s *testing.State)

func VirtualKeyboardHandwriting

func VirtualKeyboardHandwriting(ctx context.Context, s *testing.State)

func VirtualKeyboardJapaneseInputMode

func VirtualKeyboardJapaneseInputMode(ctx context.Context, s *testing.State)

func VirtualKeyboardMultipaste

func VirtualKeyboardMultipaste(ctx context.Context, s *testing.State)

func VirtualKeyboardMultipasteSuggestion

func VirtualKeyboardMultipasteSuggestion(ctx context.Context, s *testing.State)

func VirtualKeyboardOOBE

func VirtualKeyboardOOBE(ctx context.Context, s *testing.State)

func VirtualKeyboardSpeech

func VirtualKeyboardSpeech(ctx context.Context, s *testing.State)

func VirtualKeyboardTypingApps

func VirtualKeyboardTypingApps(ctx context.Context, s *testing.State)

func VirtualKeyboardTypingIME

func VirtualKeyboardTypingIME(ctx context.Context, s *testing.State)

func VirtualKeyboardTypingInputFields

func VirtualKeyboardTypingInputFields(ctx context.Context, s *testing.State)

func VirtualKeyboardTypingOmnibox

func VirtualKeyboardTypingOmnibox(ctx context.Context, s *testing.State)

func VirtualKeyboardTypingUserMode

func VirtualKeyboardTypingUserMode(ctx context.Context, s *testing.State)

Types

type KeyboardService

type KeyboardService struct {
	// contains filtered or unexported fields
}

KeyboardService implements tast.cros.inputs.KeyboardService.

func (*KeyboardService) Accel

func (svc *KeyboardService) Accel(ctx context.Context, req *pb.AccelRequest) (*empty.Empty, error)

Accel injects a sequence of key events simulating the accelerator (a.k.a. hotkey) described by s being typed. Accelerators are described as a sequence of '+'-separated, case-insensitive key characters or names. In addition to non-whitespace characters that are present on a QWERTY keyboard, the following key names may be used:

Modifiers:     "Ctrl", "Alt", "Search", "Shift"
Whitespace:    "Enter", "Space", "Tab", "Backspace"
Function keys: "F1", "F2", ..., "F12"

"Shift" must be included for keys that are typed using Shift; for example, use "Ctrl+Shift+/" rather than "Ctrl+?".

func (*KeyboardService) AccelPress

func (svc *KeyboardService) AccelPress(ctx context.Context, req *pb.AccelPressRequest) (*empty.Empty, error)

AccelPress injects a sequence of key events simulating pressing the accelerator (a.k.a. hotkey) described by s.

func (*KeyboardService) AccelRelease

func (svc *KeyboardService) AccelRelease(ctx context.Context, req *pb.AccelReleaseRequest) (*empty.Empty, error)

AccelRelease injects a sequence of key events simulating release the accelerator (a.k.a. hotkey) described by s.

func (*KeyboardService) Type

func (svc *KeyboardService) Type(ctx context.Context, req *pb.TypeRequest) (*empty.Empty, error)

Type injects key events suitable for generating the string s. Only characters that can be typed using a QWERTY keyboard are supported, and the current keyboard layout must be QWERTY. The left Shift key is automatically pressed and released for uppercase letters or other characters that can be typed using Shift.

type TouchpadService

type TouchpadService struct {
	// contains filtered or unexported fields
}

TouchpadService implements tast.cros.inputs.TouchpadService.

func (*TouchpadService) CloseChrome

func (tp *TouchpadService) CloseChrome(ctx context.Context, req *empty.Empty) (*empty.Empty, error)

CloseChrome closes a Chrome session and cleans up the resources obtained by NewChrome. Also, CloseChrome must be called after, not prior to, NewChrome.

func (*TouchpadService) FindPhysicalTouchpad

func (tp *TouchpadService) FindPhysicalTouchpad(ctx context.Context, req *empty.Empty) (*inputs.FindPhysicalTouchpadResponse, error)

FindPhysicalTouchpad iterates over devices, and returns the path for a physical touch pad if one exists.

func (*TouchpadService) NewChrome

func (tp *TouchpadService) NewChrome(ctx context.Context, req *empty.Empty) (*empty.Empty, error)

NewChrome starts a new Chrome session, and logs in as a test user.

func (*TouchpadService) TouchpadSwipe

func (tp *TouchpadService) TouchpadSwipe(ctx context.Context, req *empty.Empty) (*empty.Empty, error)

TouchpadSwipe performs a swipe on a physical touch pad.

type TouchscreenService

type TouchscreenService struct {
	// contains filtered or unexported fields
}

TouchscreenService implements tast.cros.inputs.TouchscreenService.

func (*TouchscreenService) CloseChrome

func (ts *TouchscreenService) CloseChrome(ctx context.Context, req *empty.Empty) (*empty.Empty, error)

CloseChrome closes a Chrome session and cleans up the resources obtained by NewChrome. Also, CloseChrome must be called after, not prior to, NewChrome.

func (*TouchscreenService) FindPhysicalTouchscreen

func (ts *TouchscreenService) FindPhysicalTouchscreen(ctx context.Context, req *empty.Empty) (*inputs.FindPhysicalTouchscreenResponse, error)

FindPhysicalTouchscreen iterates over devices, and returns the path for a physical touch screen if one exists.

func (*TouchscreenService) NewChrome

func (ts *TouchscreenService) NewChrome(ctx context.Context, req *empty.Empty) (*empty.Empty, error)

NewChrome starts a new Chrome session, and logs in as a test user.

func (*TouchscreenService) TouchscreenTap

func (ts *TouchscreenService) TouchscreenTap(ctx context.Context, req *empty.Empty) (*empty.Empty, error)

TouchscreenTap performs a tap at the center of a physical touch screen.

Directories

Path Synopsis
Package autocorrect contains common defs shared by Autocorrect-related tests.
Package autocorrect contains common defs shared by Autocorrect-related tests.
Package data contains input data and expected outcome for input tests.
Package data contains input data and expected outcome for input tests.
Package emojipicker contains common functions shared by Emoji-picker related tests.
Package emojipicker contains common functions shared by Emoji-picker related tests.
Package fixture defines fixtures for inputs tests.
Package fixture defines fixtures for inputs tests.
Package inputactions contains Inputs user actions.
Package inputactions contains Inputs user actions.
Package pre contains preconditions for inputs tests.
Package pre contains preconditions for inputs tests.
Package testserver contains methods to create a local web server for input tests and functions to set / get values of input fields.
Package testserver contains methods to create a local web server for input tests and functions to set / get values of input fields.
Package util contains some common utilities or constants that are used by multiple input tests.
Package util contains some common utilities or constants that are used by multiple input tests.

Jump to

Keyboard shortcuts

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