User:PerfektesChaos/js/lintHint/Test
Appearance
Test cases for lintHint gadget.
Installation Check
[edit]- Follow the instructions at lintHint#Usage.
- Continue with control page test.
Tests
[edit]Control page
[edit]Join virtual page and find some version information, if gadget activation succeeded.
Plain wikitext
[edit]There should be two forms on control page. Insert some plain wikitext into the upper one:
<small><u>little under</small></u>
- Submit.
- Should result in a large yellow box with complaints on bad tag nesting.
<small><u>little under</u></small>
- Submit.
- The yellow box should vanish, and a small green label should appear in the upper right corner, indicating correct syntax.
- Any reset button.
- Box or label should disappear.
Article
[edit]- Join an errorneous article, e.g. from this list.
- On page view, there should appear a yellow button in the upper right corner of the page.
- On clicking this button should turn into grey and disabled.
- Soon a large yellow box with complaints on the selected error category should appear on top of the page.
- Join a random article.
- Same clicking procedure.
- Hopefully this time a small green label appears in the upper right corner, indicating correct syntax.
- Otherwise, with large yellow box again, try another random article.
Any page
[edit]Return to control page.
- Insert errorneous article title into last form field.
- Submit.
- Large yellow box should show up again.
- Insert name of correct article into last form field.
- Submit.
- Small green label should be displayed again.
- Any page name from any namespace might be inserted.
- If wikitext content found, that should be analyzed the same way.