Fail / Test case
* Run the following app.js in an app:
Titanium.UI.setBackgroundColor('#444');
var win = Titanium.UI.createWindow({
title:'Test',
backgroundColor:'#444',
fullscreen: false,
exitOnClose: true
});
var v;
win.add(v = Ti.UI.createView({
width: "200dp", height: "200dp", backgroundColor: "red"
}));
v.addEventListener("click", function() {
v.animate({backgroundColor: "blue", duration: 1000, autoreverse: true});
});
win.open();
* When the app loads, tap the red box.
* In the fail case, it will animate to blue and then _stay blue_. When testing the fix, it should go back to red after blue, because
autoreverse
is set to true.
Pull request ready: https://github.com/appcelerator/titanium_mobile/pull/2624
Verified fixed with: Titanium Studio, build: 2.1.1.201207271312 Titanium SDK, build: 2.2.0.v20120810132430 Device: Samsung Nexus S (4.1.1)