uidesigner/com.nokia.sdt.component.symbian.test/data/scripts/test3.js
author timkelly
Mon, 21 Sep 2009 10:36:46 -0500
branchRCL_2_2
changeset 503 a31863532fab
parent 0 fb279309251b
permissions -rw-r--r--
Carbide 2.3.0 changes for ISDKManager


// 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"];
}