Debian Codegraph @

extensions/AbuseFilter/tests/parserTests/wptest3.t

raw
1 /* Filter 18 from English Wikipedia (test type edits from clicking on edit bar) */
2 user_groups_test := ["*"];
3 article_namespace_test := 0;
4 added_lines_test := ["Hello world! '''Bold text''' [http://www.example.com link title]"];
5
6 (article_namespace_test == 0) &
7 !("autoconfirmed" in user_groups_test) &
8 (contains_any(string(added_lines_test),
9 "'''Bold text'''",
10 "''Italic text''",
11 "[[Link title]]",
12 "[http://www.example.com link title]",
13 "== Headline text ==",
14 "[[File:Example.jpg]]",
15 "[[Media:Example.ogg]]",
16 "<math>Insert formula here</math>",
17 "<nowiki>Insert non-formatted text here</nowiki>",
18 "#REDIRECT [[Target page name]]",
19 "<s>Strike-through text</s>",
20 "<sup>Superscript text</sup>",
21 "<sub>Subscript text</sub>",
22 "<small>Small Text</small>",
23 "<!-- Comment -->",
24 "Image:Example.jpg|Caption",
25 "<ref>Insert footnote text here</ref>",
26 "Ǣ ǣ ǖ ǘ ǚ ǜ Ă"
27 ))
28