Index: trunk/wikiation/installer/tests/ImageMap/WETE.xml |
— | — | @@ -0,0 +1,18 @@ |
| 2 | +<?xml version="1.0"?> |
| 3 | +<exttests> |
| 4 | +<exttest> |
| 5 | + <name>Imagemap</name> |
| 6 | + <code><![CDATA[<imagemap> |
| 7 | +Image:Hello.jpg|200px|a friendly greeting |
| 8 | +poly 131 45 213 41 210 110 127 109 [[Display]] |
| 9 | +poly 104 126 105 171 269 162 267 124 [[Keyboard]] |
| 10 | +rect 15 95 94 176 [[Foo type A]] |
| 11 | +# A comment, this line is ignored |
| 12 | +circle 57 57 20 [[Foo type C]] |
| 13 | +desc bottom-left |
| 14 | +</imagemap>]]></code> |
| 15 | + <expect><![CDATA[<p class="error">Error: image is invalid or non-existent</p>]]></expect> |
| 16 | + <result><![CDATA[<p class="error">Error: image is invalid or non-existent</p>]]></result> |
| 17 | + <diff><![CDATA[ <p class="error">Error: image is invalid or non-existent</p>]]></diff> |
| 18 | +</exttest> |
| 19 | +</exttests> |
Index: trunk/wikiation/installer/tests/Cite/WETE.xml |
— | — | @@ -0,0 +1,39 @@ |
| 2 | +<?xml version="1.0"?> |
| 3 | +<exttests> |
| 4 | + <exttest> |
| 5 | + <name>Individual regular reference</name> |
| 6 | + <code><![CDATA[Individual regular reference.<ref>This is a regular reference.</ref><references/>]]></code> |
| 7 | + <expect><![CDATA[Individual regular reference.<sup id="cite_ref-0" class="reference"><a href="#cite_note-0" title="">[1]</a></sup><ol class="references"><li id="cite_note-0"><a href="#cite_ref-0" title="">.</a> This is a regular reference.</li></ol>]]></expect> |
| 8 | + </exttest> |
| 9 | + <exttest> |
| 10 | + <name>Multiple regular references</name> |
| 11 | + <code><![CDATA[Multiple regular references.<ref>This is the first in reference.</ref><ref>This is the second reference.</ref><ref>This is the third reference.</ref><ref>This is the fourth reference.</ref><references/>]]></code> |
| 12 | + <expect><![CDATA[Multiple regular references.<sup id="cite_ref-0" class="reference"><a href="#cite_note-0" title="">[1]</a></sup><sup id="cite_ref-1" class="reference"><a href="#cite_note-1" title="">[2]</a></sup><sup id="cite_ref-2" class="reference"><a href="#cite_note-2" title="">[3]</a></sup><sup id="cite_ref-3" class="reference"><a href="#cite_note-3" title="">[4]</a></sup><ol class="references"><li id="cite_note-0"><a href="#cite_ref-0" title="">.</a> This is the first in reference.</li> |
| 13 | +<li id="cite_note-1"><a href="#cite_ref-1" title="">.</a> This is the second reference.</li> |
| 14 | +<li id="cite_note-2"><a href="#cite_ref-2" title="">.</a> This is the third reference.</li> |
| 15 | +<li id="cite_note-3"><a href="#cite_ref-3" title="">.</a> This is the fourth reference.</li></ol>]]></expect> |
| 16 | + </exttest> |
| 17 | + <exttest> |
| 18 | + <name>Named references</name> |
| 19 | + <code><![CDATA[Named references.<ref name="test">This is a reference named "test".</ref><ref name="test"/><ref name="test"/><ref name="test"/><references/>]]></code> |
| 20 | + <expect><![CDATA[Named references.<sup id="cite_ref-test_0-0" class="reference"><a href="#cite_note-test-0" title="">[1]</a></sup><sup id="cite_ref-test_0-1" class="reference"><a href="#cite_note-test-0" title="">[1]</a></sup><sup id="cite_ref-test_0-2" class="reference"><a href="#cite_note-test-0" title="">[1]</a></sup><sup id="cite_ref-test_0-3" class="reference"><a href="#cite_note-test-0" title="">[1]</a></sup><ol class="references"><li id="cite_note-test-0">. <sup><a href="#cite_ref-test_0-0" title="">1.0</a></sup> <sup><a href="#cite_ref-test_0-1" title="">1.1</a></sup> <sup><a href="#cite_ref-test_0-2" title="">1.2</a></sup> <sup><a href="#cite_ref-test_0-3" title="">1.3</a></sup> This is a reference named "test".</li></ol>]]></expect> |
| 21 | + </exttest> |
| 22 | + <exttest> |
| 23 | + <name>Grouped references</name> |
| 24 | + <code><![CDATA[Grouped references.<ref group="testgroup">This is the first group reference.</ref><ref group="testgroup">This is the second group reference.</ref><ref group="testgroup">This is the third group reference.</ref><ref group="testgroup">This is the fourth group reference.</ref><references group="testgroup"/>]]></code> |
| 25 | + <expect><![CDATA[Grouped references.<sup id="cite_ref-0" class="reference"><a href="#cite_note-0" title="">[testgroup 1]</a></sup><sup id="cite_ref-1" class="reference"><a href="#cite_note-1" title="">[testgroup 2]</a></sup><sup id="cite_ref-2" class="reference"><a href="#cite_note-2" title="">[testgroup 3]</a></sup><sup id="cite_ref-3" class="reference"><a href="#cite_note-3" title="">[testgroup 4]</a></sup><ol class="references"><li id="cite_note-0"><a href="#cite_ref-0" title="">.</a> This is the first group reference.</li> |
| 26 | +<li id="cite_note-1"><a href="#cite_ref-1" title="">.</a> This is the second group reference.</li> |
| 27 | +<li id="cite_note-2"><a href="#cite_ref-2" title="">.</a> This is the third group reference.</li> |
| 28 | +<li id="cite_note-3"><a href="#cite_ref-3" title="">.</a> This is the fourth group reference.</li></ol>]]></expect> |
| 29 | + </exttest> |
| 30 | + <exttest> |
| 31 | + <name>Named grouped references</name> |
| 32 | + <code><![CDATA[Named grouped references.<ref name="test" group="testgroup">This is the first named group references.</ref><ref name="test" group="testgroup">This is the second named group references.</ref><ref name="test" group="testgroup">This is the third named group reference.</ref><ref name="test" group="testgroup">This is the fourth named group reference.</ref><references group="testgroup"/>]]></code> |
| 33 | + <expect><![CDATA[Named grouped references.<sup id="cite_ref-test_0-0" class="reference"><a href="#cite_note-test-0" title="">[testgroup 1]</a></sup><sup id="cite_ref-test_0-1" class="reference"><a href="#cite_note-test-0" title="">[testgroup 1]</a></sup><sup id="cite_ref-test_0-2" class="reference"><a href="#cite_note-test-0" title="">[testgroup 1]</a></sup><sup id="cite_ref-test_0-3" class="reference"><a href="#cite_note-test-0" title="">[testgroup 1]</a></sup><ol class="references"><li id="cite_note-test-0">. <sup><a href="#cite_ref-test_0-0" title="">1.0</a></sup> <sup><a href="#cite_ref-test_0-1" title="">1.1</a></sup> <sup><a href="#cite_ref-test_0-2" title="">1.2</a></sup> <sup><a href="#cite_ref-test_0-3" title="">1.3</a></sup> This is the first named group references.</li></ol>]]></expect> |
| 34 | + </exttest> |
| 35 | + <exttest> |
| 36 | + <name>newtest</name> |
| 37 | + <code><![CDATA[Named grouped references.<ref name="test" group="testgroup">This is the first named group references.</ref><ref name="test" group="testgroup">This is the second named group references.</ref><ref name="test" group="testgroup">This is the third named group reference.</ref><ref name="test" group="testgroup">This is the fourth named group reference.</ref><references group="testgroup"/>]]></code> |
| 38 | + <expect><![CDATA[Named grouped references.<sup id="cite_ref-test_0-0" class="reference"><a href="#cite_note-test-0" title="">[testgroup 1]</a></sup><sup id="cite_ref-test_0-1" class="reference"><a href="#cite_note-test-0" title="">[testgroup 1]</a></sup><sup id="cite_ref-test_0-2" class="reference"><a href="#cite_note-test-0" title="">[testgroup 1]</a></sup><sup id="cite_ref-test_0-3" class="reference"><a href="#cite_note-test-0" title="">[testgroup 1]</a></sup><ol class="references"><li id="cite_note-test-0">. <sup><a href="#cite_ref-test_0-0" title="">1.0</a></sup> <sup><a href="#cite_ref-test_0-1" title="">1.1</a></sup> <sup><a href="#cite_ref-test_0-2" title="">1.2</a></sup> <sup><a href="#cite_ref-test_0-3" title="">1.3</a></sup> This is the first named group references.</li></ol>]]></expect> |
| 39 | + </exttest> |
| 40 | +</exttests> |
Index: trunk/wikiation/installer/tests/ParserFunctions/WETE.xml |
— | — | @@ -0,0 +1,35 @@ |
| 2 | +<?xml version="1.0"?> |
| 3 | +<exttests> |
| 4 | + <exttest> |
| 5 | + <name>Test resulting true</name> |
| 6 | + <code><![CDATA[{{#if: test | true | false }}]]></code> |
| 7 | + <expect><![CDATA[true]]></expect> |
| 8 | + </exttest> |
| 9 | + <exttest> |
| 10 | + <name>Test resulting false</name> |
| 11 | + <code><![CDATA[{{#if: | true | false }}]]></code> |
| 12 | + <expect><![CDATA[false]]></expect> |
| 13 | + </exttest> |
| 14 | + <exttest> |
| 15 | + <name>Textual comparison resulting true</name> |
| 16 | + <code><![CDATA[{{#ifeq: test | test | true | false }}]]></code> |
| 17 | + <expect><![CDATA[true]]></expect> |
| 18 | + </exttest> |
| 19 | + <exttest> |
| 20 | + <name>Textual comparison resulting false</name> |
| 21 | + <code><![CDATA[{{#ifeq: test | not test | true | false }}]]></code> |
| 22 | + <expect><![CDATA[false]]></expect> |
| 23 | + </exttest> |
| 24 | + <exttest> |
| 25 | + <name>Numerical comparison resulting true</name> |
| 26 | + <code><![CDATA[{{#ifeq: 0 | -0 | true | false }}]]></code> |
| 27 | + <expect><![CDATA[true]]></expect> |
| 28 | + </exttest> |
| 29 | + <exttest> |
| 30 | + <name>Textual comparison resulting false</name> |
| 31 | + <code><![CDATA[{{#ifeq: 1 | 2 | true | false }}]]></code> |
| 32 | + <expect><![CDATA[false]]></expect> |
| 33 | + </exttest> |
| 34 | + |
| 35 | +</exttests> |
| 36 | + |