Wikibooks:Dialog/do/test/rollback
This page tests rollback, in which an action request is retracted to restore the page display from which the request was issued. The first several tests exercise primarily different contexts of rollback; later tests exercise particular causes of rollback. Some causes of rollback (such as failure to parse the page to be viewed) are listed but not supported here because they can't be induced under ordinary circumstances.
To initialize the observables — which should then be restored by each rollback test — use cols=&rows=&viewxcols=&rows=&Wikibooks:Dialog/do/test/rollbackxcols=&rows=&onexcols=&rows=&twox to provide incoming values for the second set of parameters, and manually enter new values into the text boxes. (The button doesn't preserve the contents of the text boxes.)
Parameters and fields
editobserved | expected | |
---|---|---|
Parameter foo1 :
|
{{{foo1}}}
|
none |
Parameter foo2 :
|
{{{foo2}}}
|
none |
Parameter bar1 :
|
{{{bar1}}}
|
one
|
Parameter bar2 :
|
{{{bar2}}}
|
two
|
Parameter test
|
{{{test}}}
| |
Field quux1 :
|
size=&x | |
Field quux2 :
|
cols=&rows=&x | |
Reserved parameter ROLLBACK-CLASS
|
{{{ROLLBACK-CLASS}}}
| |
Reserved parameter ROLLBACK-CONDITION
|
{{{ROLLBACK-CONDITION}}}
| |
Reserved parameter ACTIVE-PARAMETERS
|
{{{ACTIVE-PARAMETERS}}}
|
Tests
edittest | what is tested |
---|---|
contexts of rollback | |
cols=&rows=&viewxcols=&rows=&Wikibooks:Dialog/do/test/rollback/nonexistentxcols=&rows=&value1xcols=&rows=&value2xcols=&rows=&value3xcols=&rows=&value4xcols=&rows=&value5xcols=&rows=&value6x | view of nonexistent page (delegating) |
cols=&rows=&viewxcols=&rows=&Wikibooks:Dialog/do/test/rollback/nonexistentxcols=&rows=&value1xcols=&rows=&value2xcols=&rows=&value3xcols=&rows=&value4xcols=&rows=&value5xcols=&rows=&value6x | view of nonexistent page (non-delegating) |
cols=&rows=&viewxcols=&rows=&Wikibooks:Dialog/do/test/rollback/sequencexcols=&rows=&0x | rollback halts an in-progress sequence |
cols=&rows=&editxcols=&rows=&Wikibooks:Dialog/do/test/rollback/passive/formxcols=&rows=&Wikibooks:Dialog/do/test/rollback/passivex | rollback to passive url: no id, but no query parameters either |
Wikibooks:Dialog | rollback to active url with no associated id |
Enter the following url into your browser | rollback to unstable url (active, with associated id not in url) (requires direct entry of url because if embedded it would be delegated) |
https://en.wikibooks.org/wiki/Wikibooks:Dialog/do?verb=view&page=Wikibooks:Dialog/do/test/rollback&test=
| |
Enter the following url into your browser | inability to rollback from unstable url (different error panel than from stable url) (requires direct entry of url because if embedded it would be delegated) |
https://en.wikibooks.org/wiki/Wikibooks:Dialog/do?verb=view&page=Wikibooks:Dialog/do/test/rollback/nonexistent&test=
| |
causes of rollback | |
| |
failure when parsing content during view [viewStepThree] (as of this writing, this error can't be externally induced) | |
cols=&rows=&editxcols=&rows=&Wikibooks:Dialog/do/test/rollback/nonexistentx cols=&rows=&editxcols=&rows=&Wikibooks:Dialog/do/test/rollback/nonexistentx cols=&rows=&editxcols=&rows=&xcols=&rows=&Wikibooks:Dialog/do/test/rollback/nonexistentx cols=&rows=&editxcols=&rows=&Wikibooks:Dialog/do/test/rollback/nonexistentxcols=&rows=&x |
rejection of malformed edit requests [editStepOne] |
cols=&rows=&editxcols=&rows=&Wikibooks:Dialog/do/test/rollback/nonexistentxcols=&rows=&Wikibooks:Dialog/do/test/rollback/{{}}x cols=&rows=&editxcols=&rows=&Wikibooks:Dialog/do/test/rollback/nonexistentxcols=&rows=&Wikibooks:Dialog/do/test/rollback/nonexistentx cols=&rows=&editxcols=&rows=&Wikibooks:Dialog/do/test/rollback/nonexistentxcols=&rows=&Wikibooks:Dialog/do/test/rollback/form-unsecuredx cols=&rows=&editxcols=&rows=&Wikibooks:Dialog/do/test/rollback/nonexistentxcols=&rows=&Wikibooks:Dialog/do/test/rollback/form-undesignatedx |
invalid form [editStepOne, editStepTwo] |
failure to determine whether or not subject exists [editStepTwo] (as of this writing, this error can't be externally induced) | |
cols=&rows=&editxcols=&rows=&Wikibooks:Dialog/do/test/rollback/form-redundantxcols=&rows=&Wikibooks:Dialog/do/test/rollback/nonexistentx cols=&rows=&editxcols=&rows=&Wikibooks:Dialog/do/test/rollback/form-nullxcols=&rows=&Wikibooks:Dialog/do/test/rollback/nonexistentx cols=&rows=&editxcols=&rows=&Wikibooks:Dialog/do/test/rollback/form-create-failxcols=&rows=&Wikibooks:Dialog/do/test/rollback/subjectx cols=&rows=&editxcols=&rows=&Wikibooks:Dialog/do/test/rollback/form-nocreate-failxcols=&rows=&Wikibooks:Dialog/do/test/rollback/nonexistentx cols=&rows=&editxcols=&rows=&Wikibooks:Dialog/do/test/rollback/form-badcreationxcols=&rows=&Wikibooks:Dialog/do/test/rollback/nonexistentx cols=&rows=&editxcols=&rows=&Wikibooks:Dialog/do/test/rollback/form-nospecxcols=&rows=&Wikibooks:Dialog/do/test/rollback/nonexistentx |
request mis-specifying subject existence status [editStepThree] |
failure when parsing form for authentication [editStepFour] (as of this writing, this error can't be externally induced) | |
failure when parsing form for edit content [editStepSix] (as of this writing, this error can't be externally induced) | |
While viewing this dialog page, open a second browser tab and use it to
Then come back to this tab and click this button: cols=&rows=&editxcols=&rows=&Wikibooks:Dialog/do/test/rollback/form-nullxcols=&rows=&Wikibooks:Dialog/do/test/rollback/subjectx |
failure of the edit operation itself [editStepSeven] (this tests one way for it to fail; there are others, which as of this writing can't be externally induced) |
This is a test page for dialog action Wikibooks:Dialog/do. <waiting to detect dialog> Consult diagnostic panel. |
This is a test page for dialog action Wikibooks:Dialog/do. <waiting to detect dialog> Consult diagnostic panel. |