Closed Bug 716934 Opened 13 years ago Closed 13 years ago

Robotium tests might silently fail to click

Categories

(Testing :: General, defect)

x86
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla12

People

(Reporter: kats, Assigned: kats)

Details

Attachments

(1 file)

Haven't actually seen this happen, but while debugging came across the possibility and figured we should check for it.
Attachment #587356 - Flags: review?(jmaher)
Comment on attachment 587356 [details] [diff] [review]
Check for click() returning false

Review of attachment 587356 [details] [diff] [review]:
-----------------------------------------------------------------

::: build/mobile/robocop/FennecNativeElement.java.in
@@ +77,5 @@
>            public void run() {
>              View view = (View)mActivity.findViewById(id);
>              if(view != null) {
> +              if (!view.performClick()) {
> +                Log.w("Robocop", "Robocop called click on an element with no listener");

I would like these messages to make it in the log file.  I think this is a subject for another bug.
Attachment #587356 - Flags: review?(jmaher) → review+
https://hg.mozilla.org/mozilla-central/rev/4d427e719ed9
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla12
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: