Roxen.git / server / etc / test / tests / rxml / RoxenTest_BaseRXML.xml

version» Context lines:

Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:214:   <result>a </result>   </test>      <test>   <rxml><define tag="x" trimwhites="1" /><x trimwhites="1"/></rxml>   <result></result>   </test>      <test>   <rxml><define tag="x"> <attrib name="y"> </attrib> a&_.y; </define><x trimwhites="1"/></rxml> - <result> a </result> + <result> a </result>   </test>      <test> -  + <rxml><define tag="x"><!-- foo --><attrib name="y">y</attrib><?x?><attrib name="z">z</attrib>&_.y;&_.z;</define><x/></rxml> + <result><!-- foo --><?x?><attrib name="z">z</attrib>y</result> + </test> +  + <test> + <rxml><define tag="x"> <attrib name="y">y</attrib>x<attrib name="z">z</attrib>&_.y;&_.z;</define><x/></rxml> + <result> x<attrib name="z">z</attrib>y</result> + </test> +  + <test> + <rxml><define tag="x"><attrib name="y">y</attrib><![CDATA[]]><attrib name="z">z</attrib>&_.y;&_.z;</define><x/></rxml> + <result><![CDATA[]]><attrib name="z">z</attrib>y</result> + </test> +  + <test> + <rxml><define tag="x"><attrib name="y">y</attrib>&_.y;<attrib name="z">z</attrib>&_.y;&_.z;</define><x/></rxml> + <result>y<attrib name="z">z</attrib>y</result> + </test> +  + <test>   <rxml><define container="x"> a&_.contents; </define><x trimwhites="1">b </x></rxml>   <result> ab </result>   </test>      <test>   <rxml><define tag="x">&_.y;&x.y;</define><x y="z"/></rxml>   <result>zz</result>   </test>      <test>
Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:243:   <rxml><define tag="x">&var.x;</define><set variable="var.x">y</set><x/></rxml>   <result>y</result>   </test>      <test>   <rxml><define tag="x" preparse="1">&var.x;</define><set variable="var.x">y</set><x/></rxml>   <result></result>   </test>      <test> - <rxml><define tag="x"> -  <attrib name="y">1</attrib> <![CDATA[</attrib>]]> <attrib name="z">2</attrib> &_.y;:&_.z;</define><x/></rxml> - <result> </attrib> <attrib name="z">2</attrib> 1:</result> + <rxml><define tag="x"><attrib name="y">1</attrib> <![CDATA[</attrib>]]> <attrib name="z">2</attrib> &_.y;:&_.z;</define><x/></rxml> + <result> <![CDATA[</attrib>]]> <attrib name="z">2</attrib> 1:</result>   </test>      <test>   <rxml><define tag="x"><attrib name="y">hej</attrib><maketag type="tag" name="&_.y;">   <attrib name="foo">bar</attrib></maketag></define><x/></rxml>   <result><hej foo="bar" /></result>   </test>    -  + <test> +  <rxml type="string"> +  <emit source="values" values="1,2" split=","> +  <if variable="_.value = 1"> +  <define tag="t">a</define> +  </if> +  <else> +  <define tag="t">b</define> +  </else> +  <t/> +  </emit> +  </rxml> +  <result>ab</result> + </test>    -  +    <!-- ............................................................ --> -  + <comment>Type tests</comment> +  + <test> +  <rxml type="any"><case case="upper"> a </case></rxml> +  <result>A</result> + </test> +  + <test> +  <rxml type="scalar"><case case="upper"> a </case></rxml> +  <result>A</result> + </test> +  + <test> +  <rxml type="string">|<case case="upper"> a </case>|</rxml> +  <result>|A|</result> + </test> +  + <test> +  <rxml type="text/*">|<case case="upper"> a </case>|</rxml> +  <result>| A |</result> + </test> +  + <test> +  <rxml type="text/html">|<case case="upper"> a </case>|</rxml> +  <result>| A |</result> + </test> +  +  + <!-- ............................................................ -->   <comment>String number test</comment>   <test>   <rxml><number lang=swe num=43 /></rxml>   <result>fyrtiotre</result>   </test>      <test>   <rxml><number lang=sv num=43 /></rxml>   <result>fyrtiotre</result>   </test>
Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:1819:   <rxml>&page.dir;</rxml>   <result>/hej/och/</result>   </test>      <test>   <rxml>&page.fgcolor;</rxml>   <result></result>   </test>      <test> - <add what="define" name="fgcolor" value="#000000"/> - <rxml>&page.fgcolor;</rxml> +  <rxml type="string"> +  <define name="fgcolor">#000000</define> +  &page.fgcolor; +  </rxml>    <result>#000000</result>   </test>      <test>   <rxml>&page.bgcolor;</rxml>   <result></result>   </test>      <test> - <add what="define" name="bgcolor" value="#ffffff"/> - <rxml>&page.bgcolor;</rxml> +  <rxml type="string"> +  <define name="bgcolor">#ffffff</define> +  &page.bgcolor; +  </rxml>    <result>#ffffff</result>   </test>      <test>   <rxml>&page.theme-bgcolor;</rxml>   <result></result>   </test>      <test> - <add what="define" name="theme_bgcolor" value="#ffffaa"/> - <rxml>&page.theme-bgcolor;</rxml> +  <rxml type="string"> +  <define name="theme_bgcolor">#ffffaa</define> +  &page.theme-bgcolor; +  </rxml>    <result>#ffffaa</result>   </test>      <test>   <rxml>&page.theme-fgcolor;</rxml>   <result></result>   </test>      <test> - <add what="define" name="theme_fgcolor" value="#ff8c00"/> - <rxml>&page.theme-fgcolor;</rxml> +  <rxml type="string"> +  <define name="theme_fgcolor">#ff8c00</define> +  &page.theme-fgcolor; +  </rxml>    <result>#ff8c00</result>   </test>      <test>   <rxml>&page.theme-language;</rxml>   <result></result>   </test>      <test> - <add what="define" name="theme_language" value="swe"/> - <rxml>&page.theme-language;</rxml> +  <rxml type="string"> +  <define name="theme_language">swe</define> +  &page.theme-language; +  </rxml>   <result>swe</result>   </test>      <test>   <rxml>&page.counter; &page.counter;</rxml>   <result>1 2</result>   </test>      <test>   <rxml>&page.counter; &page.counter;</rxml>