Testing PhoneGap Functionality