]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.webapp/src/main/webapp/source/class/org/argeo/slc/web/model/TestCase.js
Canonical view
[gpl/argeo-slc.git] / org.argeo.slc.webapp / src / main / webapp / source / class / org / argeo / slc / web / model / TestCase.js
1 /**
2 * @author Charles
3 */
4 qx.Class.define("org.argeo.slc.web.model.TestCase",
5 {
6 extend : qx.core.Object,
7
8 construct : function(xmlNode){
9 this.base(arguments);
10 this.setData(xmlNode);
11 if(xmlNode != null){
12 this.setLabel(this.getProperty('param[@name="testName"]'));
13 }
14 },
15
16 properties :
17 {
18 label : {init:""},
19 data : {nullable : true}
20 },
21
22 /*
23 *****************************************************************************
24 MEMBERS
25 *****************************************************************************
26 */
27
28 members :
29 {
30 getProperty : function(xPath){
31 var xmlNode = this.getData();
32 return qx.dom.Node.getText(org.argeo.slc.web.util.Element.selectSingleNode(xmlNode, xPath)) || "";
33 }
34 }
35 });