User:PerfektesChaos/js/lintHint/Test

Test cases for lintHint gadget.

Installation Check

 * 1) Follow the instructions at lintHint#Usage.
 * 2) Continue with control page test.

Control page
Join virtual page and find some version information, if gadget activation succeeded.

Plain wikitext
There should be two forms on control page. Insert some plain wikitext into the upper one:
 * 1) * Submit.
 * 2) * Should result in a large yellow box with complaints on bad tag nesting.
 * 3) * Submit.
 * 4) * The yellow box should vanish, and a small green label should appear in the upper right corner, indicating correct syntax.
 * 5) Any reset button.
 * 6) * Box or label should disappear.
 * 1) Any reset button.
 * 2) * Box or label should disappear.

Article

 * 1) Join an errorneous article, e.g. from [ this list].
 * 2) * On page view, there should appear a yellow button in the upper right corner of the page.
 * 3) * On clicking this button should turn into grey and disabled.
 * 4) * Soon a large yellow box with complaints on the selected error category should appear on top of the page.
 * 5) Join a random article.
 * 6) * Same clicking procedure.
 * 7) * Hopefully this time a small green label appears in the upper right corner, indicating correct syntax.
 * 8) * Otherwise, with large yellow box again, try another random article.

Any page
Return to control page.
 * 1) Insert errorneous article title into last form field.
 * 2) * Submit.
 * 3) * Large yellow box should show up again.
 * 4) Insert name of correct article into last form field.
 * 5) * Submit.
 * 6) * Small green label should be displayed again.
 * 7) Any page name from any namespace might be inserted.
 * 8) * If wikitext content found, that should be analyzed the same way.