uidesigner/com.nokia.sdt.component.symbian.test/data/scripts/test3.js
author fturovic <frank.turovich@nokia.com>
Fri, 24 Apr 2009 10:31:21 -0500 (2009-04-24)
branchRCL_2_0
changeset 124 4629a6a90ed5
parent 2 d760517a8095
permissions -rw-r--r--
merged with Tims last change

// this test gets everything through strange accessors methods

function Test() {
}

Test.prototype.getInstance = function() {
	return instance;
}

Test.prototype.getProperties = function() {
	return instance != undefined ? instance.properties : undefined;
}

Test.prototype.getNamePlusFoo = function() {
	props = instance["properties"]
	return props["name"] + "foo";
}

Test.prototype.getSizeFormatted = function() {
	size = instance.properties.size
	return size.x + "," + size["y"];
}