void function ( ) { synchronized ( mEvent ) { if ( mHappened ) return ; while ( ! mHappened ) { mEvent . wait ( ) ; } mHappened = false ; } }
wait for the javascript event happen , there is no timeout parameter , you usually should depend on unit test 's timeout . concode_field_sep boolean mHappened concode_elem_sep Object mEvent concode_field_sep void notifyJava concode_elem_sep void register