Index: trunk/phase3/maintenance/parserTests.txt |
— | — | @@ -6897,16 +6897,34 @@ |
6898 | 6898 | |
6899 | 6899 | |
6900 | 6900 | !! test |
6901 | | -Adding explicit session-wise language variant mapping (A flag) |
| 6901 | +Explicit session-wise language variant mapping (A flag and - flag) |
6902 | 6902 | !! options |
6903 | 6903 | language=zh variant=zh-tw |
6904 | 6904 | !! input |
6905 | | --{A|zh:China;zh-tw:Taiwan}- is China |
| 6905 | +Taiwan is not China. |
| 6906 | +But -{A|zh:China;zh-tw:Taiwan}- is China, |
| 6907 | +(This-{-|zh:China;zh-tw:Taiwan}- should be stripped!) |
| 6908 | +and -{China}- is China. |
6906 | 6909 | !! result |
6907 | | -<p>Taiwan is Taiwan |
| 6910 | +<p>Taiwan is not China. |
| 6911 | +But Taiwan is Taiwan, |
| 6912 | +(This should be stripped!) |
| 6913 | +and China is China. |
6908 | 6914 | </p> |
6909 | 6915 | !! end |
6910 | 6916 | |
| 6917 | +!! test |
| 6918 | +Explicit session-wise language variant mapping (H flag for hide) |
| 6919 | +!! options |
| 6920 | +language=zh variant=zh-tw |
| 6921 | +!! input |
| 6922 | +(This-{H|zh:China;zh-tw:Taiwan}- should be stripped!) |
| 6923 | +Taiwan is China. |
| 6924 | +!! result |
| 6925 | +<p>(This should be stripped!) |
| 6926 | +Taiwan is Taiwan. |
| 6927 | +</p> |
| 6928 | +!! end |
6911 | 6929 | |
6912 | 6930 | !! test |
6913 | 6931 | Adding explicit conversion rule for title (T flag) |