uidesigner/com.nokia.sdt.component.symbian.test/data/scripts/test1_params.js
author cawthron
Tue, 24 Mar 2009 22:20:21 -0500
changeset 2 d760517a8095
permissions -rw-r--r--
new
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
cawthron
parents:
diff changeset
     2
// this test uses only globals
cawthron
parents:
diff changeset
     3
cawthron
parents:
diff changeset
     4
function Test() {
cawthron
parents:
diff changeset
     5
}
cawthron
parents:
diff changeset
     6
cawthron
parents:
diff changeset
     7
Test.prototype.getInstance = function() {
cawthron
parents:
diff changeset
     8
	return instance;
cawthron
parents:
diff changeset
     9
}
cawthron
parents:
diff changeset
    10
cawthron
parents:
diff changeset
    11
Test.prototype.getProperties = function() {
cawthron
parents:
diff changeset
    12
	return properties;
cawthron
parents:
diff changeset
    13
}
cawthron
parents:
diff changeset
    14
cawthron
parents:
diff changeset
    15
Test.prototype.getNamePlusFoo = function() {
cawthron
parents:
diff changeset
    16
	return properties["name"] + "foo";
cawthron
parents:
diff changeset
    17
}
cawthron
parents:
diff changeset
    18
cawthron
parents:
diff changeset
    19
Test.prototype.getSizeFormatted = function() {
cawthron
parents:
diff changeset
    20
	return properties["size"].x + "," + properties["size"].y;
cawthron
parents:
diff changeset
    21
}
cawthron
parents:
diff changeset
    22