source: resources/apps/xforms-test-suite/tests/hello-world/suite.xml @ aab39dd

Revision aab39dd, 1.2 KB checked in by Eric van der Vlist <vdv@dyomedea.com>, 7 years ago (diff)

Refactoring the test suite vocabulary and adding a schema

  • Property mode set to 100644
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<?xml-model href="../../suite.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
3<?xml-model href="../../suite.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
4<suite xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms"
5    xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://xformsunit.org/namespaces/suite/"
6    xmlns:m="http://xformsunit.org/namespaces/model/" xmlns:v="http://xformsunit.org/namespaces/view/"
7    xmlns:c="http://xformsunit.org/namespaces/controller/">
8    <form src="hello-world.xhtml"/>
9
10    <!-- The test cases -->
11    <case id="test-greetings">
12        <title>Test that greetings are correctly set</title>
13        <c:setvalue ref="instance('instance')/PersonGivenName">Eric</c:setvalue>
14        <m:assertEqual>
15            <m:actual ref="instance('instance')/Greetings"/>
16            <m:expected>Hello Eric. We hope you like XForms!</m:expected>
17            <m:message>The greetings should be the concatenation of "Hello ", the given name and ". We hope you like
18                XForms!".</m:message>
19        </m:assertEqual>
20    </case>
21</suite>
Note: See TracBrowser for help on using the repository browser.