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

version» Context lines:

Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:768:   <test>   <rxml><set variable="var.x">A</set><if Variable="var.x == A">1</if></rxml>   <result>1</result>   </test>      <test>   <rxml><set variable="var.x">A</set><if Variable="var.x == a">1</if></rxml>   <result></result>   </test>    + <test> + <add what="request_header" name="accept" value="image/gif, image/jpeg"/> + <rxml><if accept="image/jpeg">1</if></rxml> + <result>1</result> + </test>    -  + <test> + <add what="request_header" name="accept" value="audio/mpeg, image/jpeg"/> + <rxml><if accept="image/*">1</if></rxml> + <result>1</result> + </test> +  + <test> + <add what="request_header" name="accept" value="audio/mpeg, image/jpeg"/> + <rxml><if accept="text/plain">1</if></rxml> + <result></result> + </test> +    <comment>Missing test: if date</comment>   <comment>Missing test: if time</comment>   <comment>Missing test: if user</comment>   <comment>Missing test: if group</comment>   <comment>Missing test: if accept</comment>   <comment>Missing test: if config</comment>   <comment>Missing test: if cookie</comment>   <comment>Missing test: if client</comment>   <comment>Missing test: if defined</comment>   <comment>Missing test: if domain</comment>   <comment>Missing test: if ip</comment>   <comment>Missing test: if language</comment>   <comment>Missing test: if pragma</comment>   <comment>Missing test: if prestate</comment>   <comment>Missing test: if referrer</comment>   <comment>Missing test: if supports</comment>   <comment>Missing test: if clientvar</comment>   <comment>Missing test: <cond></comment> - <comment>Missing test: path emit plugin</comment> +          <!-- ............................................................ --> -  + <comment>Path emit plugin</comment> + <test> + <rxml><emit source="path" path="/a/b/c">&_.name; &_.path;|</emit></rxml> + <result> /|a /a|b /a/b|c /a/b/c|</result> + </test> +  + <test> + <rxml><emit source="path" path="/a/b/c" trim="/c">&_.name; &_.path;|</emit></rxml> + <result> /|a /a|b /a/b|</result> + </test> +  + <test> + <rxml><emit source="path" path="/a/b/c" skip="1">&_.name; &_.path;|</emit></rxml> + <result>a /a|b /a/b|c /a/b/c|</result> + </test> +  + <test> + <rxml><emit source="path" path="/a/b/c" skip-end="1">&_.name; &_.path;|</emit></rxml> + <result> /|a /a|b /a/b|</result> + </test> +  +  + <!-- ............................................................ -->   <comment>Emit tests</comment>   <test>   <rxml><emit source="values" values="1,2,3" split=",">&_.value;:</emit></rxml>   <result>1:2:3:</result>   </test>      <test>   <rxml><emit source="OTESTER">&_.c;:</emit></rxml>   <result>1:2:3:4:</result>   </test>
Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:1330:      <test>   <rxml><use package="test_rxml_package" info="1"/></rxml>   <has-value not="1">roxenlogo</has-value>   <has-value>test_rxml_package</has-value>   <has-value>RXML test package</has-value>   </test>      <comment>Missing test: load package from file</comment>    - <comment>Missing test: <help> tag</comment> + <!-- ............................................................ --> + <comment>RXML help</comment> + <test> + <rxml><help/></rxml> + <glob>*</glob> + </test>         <!-- ............................................................ -->   <comment>Number tests</comment>   <test>   <rxml><number num="3"/></rxml>   <result>three</result>   </test>      <test>
Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:1696:         <!-- ............................................................ -->   <comment>Client scope</comment>   <test>   <rxml>&client.no-such-variable;</rxml>   <result></result>   </test>      <test> + <rxml><set variable="client.foo" value="x"/>&client.foo;</rxml> + <result>x</result> + </test> +  + <test>   <rxml><insert variables="full" scope="client"/> Checking for backtrace</rxml>   <glob>*</glob>   </test>      <test>   <rxml>&client.fullname;</rxml>   <result></result>   </test>      <test>
Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:1784:         <!-- ............................................................ -->   <comment>Cookie scope</comment>   <test>   <rxml>&cookie.no-such-cookie;</rxml>   <result></result>   </test>      <test> + <rxml><set variable="cookie.foo" value="x"/>&cookie.foo;</rxml> + <result>x</result> + </test> +  + <test>   <rxml><insert variables="full" scope="cookie"/> Checking for backtrace</rxml>   <glob>*</glob>   </test>         <!-- ............................................................ -->   <comment>Roxen scope</comment>   <test>   <rxml>&roxen.no-such-variable;</rxml>   <result></result>   </test>    -  + <!-- Should fail   <test> -  + <rxml><set variable="roxen.foo" value="x"/>&roxen.foo;</rxml> + <result></result> + </test> + --> +  + <test>   <rxml><insert variables="full" scope="roxen"/> Checking for backtrace</rxml>   <glob>*</glob>   </test>      <test>   <rxml>&roxen.domain;</rxml>   <glob>?*</glob>   </test>      <test>
Roxen.git/server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:1890:      <test>   <rxml>&roxen.uptime-minutes;</rxml>   <regexp>[0-9]+</regexp>   </test>      <test>   <rxml>&roxen.version;</rxml>   <regexp>Roxen/2\.2\.[0-9]+</regexp>   </test> +  + <test> + <rxml>&roxen.unique-id;</rxml> + <regexp>[0-9A-F]+</regexp> + </test>