User:Shirik/UnitTests

This is a collection of unit test procedures for edit filters.

Test 1

 * 1) Create a page with code [[Image:Example.jpg]] Lorem ipsum dolor sit amet
 * 2) Remove the image
 * 3) Assert a match

Test 2

 * 1) Create a page with code Lorem ipsum dolor sit amet [[Image:Example.jpg]]
 * 2) remove the image
 * 3) Assert a match

Test 3

 * 1) Create a page with code [[Image:Example.jpg]] Lorem ipsum dolor sit amet
 * 2) Change the page to [[Image:Example2.jpg]] Lorem ipsum dolor sit amet
 * 3) Assert a match

Test 4
{{infobox musical artist |name = John Doe |img = No male portrait.svg }} {{infobox musical artist |name = John Doe }}
 * 1) Create a page with code
 * 1) Change the page to
 * 1) Assert a match

Test 5
{{Infobox President |name = John Doe |image = No male portrait.svg }} {{infobox musical artist |name = John Doe }}
 * 1) Create a page with code
 * 1) Change the page to
 * 1) Assert a match

Test 6

 * 1) Create a page with code [[File:Example.jpg]] Lorem ipsum dolor sit amet
 * 2) Remove the image
 * 3) Assert a match

Test 1

 * 1) Create a page with code [[File:Example.jpg]] Lorem ipsum dolor
 * 2) Change the page to [[File:Example.jpg]] sit amet
 * 3) Assert no match

Test 2
{{Infobox President |name = John Doe |image = No male portrait.svg }} {{Infobox President |name = Jane Doe |image = No male portrait.svg }}
 * 1) Create a page with code
 * 1) Change the page to