uidesigner/com.nokia.sdt.component.symbian.test/data/scripts/testarrays.js
author fturovic <frank.turovich@nokia.com>
Tue, 07 Apr 2009 13:41:27 -0500
branchRCL_2_0
changeset 67 47ecdc260147
parent 2 d760517a8095
permissions -rw-r--r--
updated release date
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
function Test() {
cawthron
parents:
diff changeset
     2
}
cawthron
parents:
diff changeset
     3
cawthron
parents:
diff changeset
     4
Test.prototype.getStuff = function(idx) {
cawthron
parents:
diff changeset
     5
	if (idx == 0) {
cawthron
parents:
diff changeset
     6
		return ["foo", "bar"];
cawthron
parents:
diff changeset
     7
	} else if (idx == 1) {
cawthron
parents:
diff changeset
     8
		return [23, 45];
cawthron
parents:
diff changeset
     9
	} else if (idx == 2) {
cawthron
parents:
diff changeset
    10
		var lst = new java.util.ArrayList();
cawthron
parents:
diff changeset
    11
		lst.add(23);
cawthron
parents:
diff changeset
    12
		lst.add(45);
cawthron
parents:
diff changeset
    13
		return lst;
cawthron
parents:
diff changeset
    14
	} else if (idx == 3) {
cawthron
parents:
diff changeset
    15
		return "foo";
cawthron
parents:
diff changeset
    16
	}
cawthron
parents:
diff changeset
    17
}
cawthron
parents:
diff changeset
    18