Merge "Adding DelayedCheck() in testHasWindowFocus." into froyo