User:GregU/randomlink.js/tests

Regression tests
To regression test randomlink.js, copy the script to monobook.js, add  at the top, and try each of the following cases, noting how many links are found for each. After making the changes, re-do the tests and verify that none of the numbers changed significantly.


 * 1) Featured articles (2827)
 * 2) Song Thrush (169)
 * 3) " " [ history] (42)
 * 4) " " What links here (81)
 * 5) " " Related changes (22) [varies]
 * 6) Talk:Song Thrush (41)
 * File:Official portrait of Barack Obama.jpg (97)
 * Category with only subcategories (30)
 * Category with pages and files and links at top (42)
 * 1) Special:Watchlist (10)
 * 2) Special:RecentChanges (48)
 * 3) Special:ProtectedPages (50)
 * 4) Special:AllPages (150) [also drill down to last level]
 * 5) Special:Contributions/Zoe (50)
 * 6) Special:Log/upload (50)

Other tests

 * 1) Check that it still works with Internet Explorer
 * 2) Check that menu examples on documentation page still work
 * 3) Check that it still works with User:Anomie/linkclassifier.js (optional)