Documentation ¶
Overview ¶
Package inputs contains local Tast tests that exercise Chrome OS essential inputs.
Index ¶
- func InputMethodManagement(ctx context.Context, s *testing.State)
- func InputMethodShelf(ctx context.Context, s *testing.State)
- func InputMethodShelfInputs(ctx context.Context, s *testing.State)
- func InputMethodSystemLanguage(ctx context.Context, s *testing.State)
- func Manual(ctx context.Context, s *testing.State)
- func PhysicalKeyboardAutocorrect(ctx context.Context, s *testing.State)
- func PhysicalKeyboardCapsLock(ctx context.Context, s *testing.State)
- func PhysicalKeyboardChangeInput(ctx context.Context, s *testing.State)
- func PhysicalKeyboardDeadKeys(ctx context.Context, s *testing.State)
- func PhysicalKeyboardEmoji(ctx context.Context, s *testing.State)
- func PhysicalKeyboardEmojiInformational(ctx context.Context, s *testing.State)
- func PhysicalKeyboardEmojiSearch(ctx context.Context, s *testing.State)
- func PhysicalKeyboardEmojiSuggestion(ctx context.Context, s *testing.State)
- func PhysicalKeyboardEnglishTyping(ctx context.Context, s *testing.State)
- func PhysicalKeyboardGrammarCheck(ctx context.Context, s *testing.State)
- func PhysicalKeyboardInputFields(ctx context.Context, s *testing.State)
- func PhysicalKeyboardJapaneseTyping(ctx context.Context, s *testing.State)
- func PhysicalKeyboardKoreanTyping(ctx context.Context, s *testing.State)
- func PhysicalKeyboardMultiwordSuggestion(ctx context.Context, s *testing.State)
- func PhysicalKeyboardPinyinTyping(ctx context.Context, s *testing.State)
- func PhysicalKeyboardTransliterationTyping(ctx context.Context, s *testing.State)
- func VirtualKeyboardAccent(ctx context.Context, s *testing.State)
- func VirtualKeyboardAccessibility(ctx context.Context, s *testing.State)
- func VirtualKeyboardAutoShift(ctx context.Context, s *testing.State)
- func VirtualKeyboardAutocorrect(ctx context.Context, s *testing.State)
- func VirtualKeyboardChangeInput(ctx context.Context, s *testing.State)
- func VirtualKeyboardDeadKeys(ctx context.Context, s *testing.State)
- func VirtualKeyboardEnglishSettings(ctx context.Context, s *testing.State)
- func VirtualKeyboardFloat(ctx context.Context, s *testing.State)
- func VirtualKeyboardGlideTyping(ctx context.Context, s *testing.State)
- func VirtualKeyboardHandwriting(ctx context.Context, s *testing.State)
- func VirtualKeyboardJapaneseInputMode(ctx context.Context, s *testing.State)
- func VirtualKeyboardMultipaste(ctx context.Context, s *testing.State)
- func VirtualKeyboardMultipasteSuggestion(ctx context.Context, s *testing.State)
- func VirtualKeyboardOOBE(ctx context.Context, s *testing.State)
- func VirtualKeyboardSpeech(ctx context.Context, s *testing.State)
- func VirtualKeyboardTypingApps(ctx context.Context, s *testing.State)
- func VirtualKeyboardTypingIME(ctx context.Context, s *testing.State)
- func VirtualKeyboardTypingInputFields(ctx context.Context, s *testing.State)
- func VirtualKeyboardTypingOmnibox(ctx context.Context, s *testing.State)
- func VirtualKeyboardTypingUserMode(ctx context.Context, s *testing.State)
- type KeyboardService
- func (svc *KeyboardService) Accel(ctx context.Context, req *pb.AccelRequest) (*empty.Empty, error)
- func (svc *KeyboardService) AccelPress(ctx context.Context, req *pb.AccelPressRequest) (*empty.Empty, error)
- func (svc *KeyboardService) AccelRelease(ctx context.Context, req *pb.AccelReleaseRequest) (*empty.Empty, error)
- func (svc *KeyboardService) Type(ctx context.Context, req *pb.TypeRequest) (*empty.Empty, error)
- type TouchpadService
- func (tp *TouchpadService) CloseChrome(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (tp *TouchpadService) FindPhysicalTouchpad(ctx context.Context, req *empty.Empty) (*inputs.FindPhysicalTouchpadResponse, error)
- func (tp *TouchpadService) NewChrome(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (tp *TouchpadService) TouchpadSwipe(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- type TouchscreenService
- func (ts *TouchscreenService) CloseChrome(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (ts *TouchscreenService) FindPhysicalTouchscreen(ctx context.Context, req *empty.Empty) (*inputs.FindPhysicalTouchscreenResponse, error)
- func (ts *TouchscreenService) NewChrome(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (ts *TouchscreenService) TouchscreenTap(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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 ¶
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.
Source Files ¶
- input_method_management.go
- input_method_shelf.go
- input_method_shelf_inputs.go
- input_method_system_language.go
- keyboard_service.go
- manual.go
- physical_keyboard_autocorrect.go
- physical_keyboard_caps_lock.go
- physical_keyboard_change_input.go
- physical_keyboard_dead_keys.go
- physical_keyboard_emoji.go
- physical_keyboard_emoji_informational.go
- physical_keyboard_emoji_search.go
- physical_keyboard_emoji_suggestion.go
- physical_keyboard_english_typing.go
- physical_keyboard_grammar_check.go
- physical_keyboard_input_fields.go
- physical_keyboard_japanese_typing.go
- physical_keyboard_korean_typing.go
- physical_keyboard_multiword_suggestion.go
- physical_keyboard_pinyin_typing.go
- physical_keyboard_transliteration_typing.go
- touch_pad_service.go
- touch_screen_service.go
- virtual_keyboard_accent.go
- virtual_keyboard_accessibility.go
- virtual_keyboard_auto_shift.go
- virtual_keyboard_autocorrect.go
- virtual_keyboard_change_input.go
- virtual_keyboard_dead_keys.go
- virtual_keyboard_english_settings.go
- virtual_keyboard_float.go
- virtual_keyboard_glide_typing.go
- virtual_keyboard_handwriting.go
- virtual_keyboard_japanese_input_mode.go
- virtual_keyboard_multipaste.go
- virtual_keyboard_multipaste_suggestion.go
- virtual_keyboard_oobe.go
- virtual_keyboard_speech.go
- virtual_keyboard_typing_apps.go
- virtual_keyboard_typing_ime.go
- virtual_keyboard_typing_input_fields.go
- virtual_keyboard_typing_omnibox.go
- virtual_keyboard_typing_user_mode.go
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. |