uidesigner/com.nokia.sdt.component.symbian.test/data/display/script_foobar.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
var gCounter = 0;
cawthron
parents:
diff changeset
     2
cawthron
parents:
diff changeset
     3
function FooBar() {
cawthron
parents:
diff changeset
     4
	this.counter = ++gCounter;
cawthron
parents:
diff changeset
     5
}
cawthron
parents:
diff changeset
     6
cawthron
parents:
diff changeset
     7
FooBar.prototype.doFoo = function() {
cawthron
parents:
diff changeset
     8
cawthron
parents:
diff changeset
     9
	return this.counter;
cawthron
parents:
diff changeset
    10
}
cawthron
parents:
diff changeset
    11
cawthron
parents:
diff changeset
    12
FooBar.prototype.doBar = function() {
cawthron
parents:
diff changeset
    13
cawthron
parents:
diff changeset
    14
	return this.counter;
cawthron
parents:
diff changeset
    15
}
cawthron
parents:
diff changeset
    16
cawthron
parents:
diff changeset
    17
FooBar.prototype.propertyChanged = function(instance, propertyId) {
cawthron
parents:
diff changeset
    18
	if (propertyId == "foo")
cawthron
parents:
diff changeset
    19
		instance.properties.bar = instance.properties.foo;
cawthron
parents:
diff changeset
    20
}