User:PerfektesChaos/js/lintHint/Test

Test cases for lintHint gadget.

Installation Check edit

  1. Follow the instructions at lintHint#Usage.
  2. 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:

  1. <small><u>little under</small></u>
    • Submit.
    • Should result in a large yellow box with complaints on bad tag nesting.
  2. <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.
  3. Any reset button.
    • Box or label should disappear.

Article edit

  1. 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.
  2. 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.

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