manualtest

package
v0.13.9 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

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 NewAjaxTimingForm

func NewAjaxTimingForm(ctx context.Context) page.FormI

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) Action

func (f *AjaxTimingForm) Action(ctx context.Context, a page.ActionParams)

func (*AjaxTimingForm) AddHeadTags

func (ctrl *AjaxTimingForm) AddHeadTags()

func (*AjaxTimingForm) DrawTemplate

func (ctrl *AjaxTimingForm) DrawTemplate(ctx context.Context, buf *bytes.Buffer) (err error)

Jump to

Keyboard shortcuts

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