This is a collection of unit test procedures for edit filters.
New user changing or removing images edit
Positives edit
Test 1 edit
- Create a page with code [[Image:Example.jpg]] Lorem ipsum dolor sit amet
- Remove the image
- Assert a match
Test 2 edit
- Create a page with code Lorem ipsum dolor sit amet [[Image:Example.jpg]]
- remove the image
- Assert a match
Test 3 edit
- Create a page with code [[Image:Example.jpg]] Lorem ipsum dolor sit amet
- Change the page to [[Image:Example2.jpg]] Lorem ipsum dolor sit amet
- Assert a match
Test 4 edit
- Create a page with code
{{infobox musical artist |name = John Doe |img = No male portrait.svg }}
- Change the page to
{{infobox musical artist |name = John Doe }}
- Assert a match
Test 5 edit
- Create a page with code
{{Infobox President |name = John Doe |image = No male portrait.svg }}
- Change the page to
{{infobox musical artist |name = John Doe }}
- Assert a match
Test 6 edit
- Create a page with code [[File:Example.jpg]] Lorem ipsum dolor sit amet
- Remove the image
- Assert a match
Negatives edit
Test 1 edit
- Create a page with code [[File:Example.jpg]] Lorem ipsum dolor
- Change the page to [[File:Example.jpg]] sit amet
- Assert no match
Test 2 edit
- Create a page with code
{{Infobox President |name = John Doe |image = No male portrait.svg }}
- Change the page to
{{Infobox President |name = Jane Doe |image = No male portrait.svg }}