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 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 ¶
Click to show internal directories.
Click to hide internal directories.