Fixed logical error in TestChangeAnimationInternal::onExit.
Merge pull request #6220 from Dhilan007/develop

Fixed logical error in TestChangeAnimationInternal::onExit.