uidesigner/com.nokia.sdt.component.symbian.test/data/scripts/propwriter1_params.js
author dadubrow
Mon, 06 Apr 2009 13:50:37 -0500
branchRCL_2_0
changeset 48 cfd7fcf6bf2d
parent 2 d760517a8095
permissions -rw-r--r--
Modifying autotest behavior from connection settings page such that for each time the user request testing, test at most 3 times with success ending autotesting
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
cawthron
parents:
diff changeset
     2
function Test() {
cawthron
parents:
diff changeset
     3
}
cawthron
parents:
diff changeset
     4
cawthron
parents:
diff changeset
     5
cawthron
parents:
diff changeset
     6
Test.prototype.getName = function(inst) {
cawthron
parents:
diff changeset
     7
	return inst.properties["name"];
cawthron
parents:
diff changeset
     8
}
cawthron
parents:
diff changeset
     9
cawthron
parents:
diff changeset
    10
Test.prototype.setName = function(inst, str) {
cawthron
parents:
diff changeset
    11
	inst.properties["name"] = "_" + str;
cawthron
parents:
diff changeset
    12
}
cawthron
parents:
diff changeset
    13
cawthron
parents:
diff changeset
    14
Test.prototype.getSizeFormatted = function(props) {
cawthron
parents:
diff changeset
    15
	return props["size"].x + "," + props["size"].y;
cawthron
parents:
diff changeset
    16
}
cawthron
parents:
diff changeset
    17
cawthron
parents:
diff changeset
    18
Test.prototype.setSize = function(props, x,y) {
cawthron
parents:
diff changeset
    19
	props["size"]["x"] = x;
cawthron
parents:
diff changeset
    20
	props["size"]["y"] = y;
cawthron
parents:
diff changeset
    21
}