@FlakyTest(tolerance=3) public void testPopupNoSelection() throws Exception {
  AutoCompleteTextViewSimple theActivity=getActivity();
  AutoCompleteTextView textView=theActivity.getTextView();
  final Instrumentation instrumentation=getInstrumentation();
  textView.requestFocus();
  instrumentation.waitForIdleSync();
  sendKeys("A");
  instrumentation.waitForIdleSync();
  Thread.sleep(WAIT_TIME);
  assertFalse("onItemClick should not be called",theActivity.mItemClickCalled);
  assertFalse("onItemSelected should not be called",theActivity.mItemSelectedCalled);
}

@ FlakyTest ( tolerance = 3 ) public void testPopupNoSelection ( ) throws Exception { AutoCompleteTextViewSimple theActivity = getActivity ( ) ; AutoCompleteTextView textView = theActivity . getTextView ( ) ; final Instrumentation instrumentation = getInstrumentation ( ) ; textView . requestFocus ( ) ; instrumentation . waitForIdleSync ( ) ; sendKeys ( "A" ) ; instrumentation . waitForIdleSync ( ) ; Thread . sleep ( WAIT_TIME ) ; assertFalse ( "onItemClick should not be called" , theActivity . mItemClickCalled ) ; assertFalse ( "onItemSelected should not be called" , theActivity . mItemSelectedCalled ) ; }
test that the initial popup of the suggestions does not select anything .
