Bug 716934 - Print warning when clicking on elements with no listener. r=jmaher

This commit is contained in:
Kartikaya Gupta 2012-01-10 14:15:18 -05:00
parent b6c5d40b28
commit 55837d51d2

View File

@ -77,7 +77,9 @@ public class FennecNativeElement implements Element {
public void run() {
View view = (View)mActivity.findViewById(id);
if(view != null) {
view.performClick();
if (!view.performClick()) {
Log.w("Robocop", "Robocop called click on an element with no listener");
}
} else {
throw new RoboCopException("click: unable to find view "+id);
}