manualtest

package
v0.31.10 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package manualtest contains tests of the framework that require manual setup or execution.

Index

Constants

View Source
const (
	Txt1ChangeAction = iota + 1
	Txt1KeyUpAction
	ChkChangeAction
	Txt2ChangeAction
	BtnClickAction
)
View Source
const AjaxTimingId = "AjaxTimingForm"
View Source
const AjaxTimingPath = "/goradd/test/AjaxTiming.g"

Variables

This section is empty.

Functions

func TestForm

func TestForm(t *browsertest.TestForm)

Types

type AjaxTimingForm

type AjaxTimingForm struct {
	FormBase
	Txt1            *Textbox
	Txt1ChangeLabel *Span
	Txt1KeyUpLabel  *Span
	Chk             *Checkbox
	ChkLabel        *Span
	Txt2            *Textbox
	Btn             *Button
}

*

  • AjaxTimingForm *
  • Tests the timing of ajax events and our ability to record a change to a control. There is a bit of a race condition
  • that we need to get under control. For example, if the user clicks a checkbox that also has a "click" handler, and
  • inside that handler, tests the value of the checkbox, the user should see the new value and not the one before the
  • click. Other problems come up when a Click causes a Change or FocusOut, which in turn changes the focus. Typically
  • in javascript, that would cause the Click to be lost. Our javascript tries to accommodate this by queueing all the
  • event responses before processing them. *
  • This is currently a manual test. Using a browser tester like Selenium, we could maybe make this part of the regular
  • continuous integration test.

func (*AjaxTimingForm) AddHeadTags

func (ctrl *AjaxTimingForm) AddHeadTags()

func (*AjaxTimingForm) DoAction added in v0.23.0

func (f *AjaxTimingForm) DoAction(ctx context.Context, a action.Params)

func (*AjaxTimingForm) DrawTemplate

func (ctrl *AjaxTimingForm) DrawTemplate(ctx context.Context, _w io.Writer) (err error)

func (*AjaxTimingForm) Init added in v0.18.0

func (f *AjaxTimingForm) Init(ctx context.Context, id string)

Jump to

Keyboard shortcuts

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