Closed Bug 636140 Opened 13 years ago Closed 13 years ago

browser_tapping.js failure

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: vingtetun, Assigned: vingtetun)

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
      No description provided.
Attachment #514473 - Flags: review?(mark.finkle)
Comment on attachment 514473 [details] [diff] [review]
Patch


>+    // Hack the allowZoom getter since we want to observe events
>+    // for testing purpose even if it is a local tab
>+    gCurrentTab.__defineGetter__("allowZoom", function() {
>+      return true;
>+    });

Add a "See: ContentTouchHandler.handleEvent for 'TapUp'"  to the comment so it's easier to find the code that we need to work around

>+    setTimeout(runNextTest, 0);

Is this OK for devices? Might be too short. I guess we'll find out

r+ but add the comment
Attachment #514473 - Flags: review?(mark.finkle) → review+
(In reply to comment #1)
> >+    // Hack the allowZoom getter since we want to observe events
> >+    // for testing purpose even if it is a local tab
> >+    gCurrentTab.__defineGetter__("allowZoom", function() {
> >+      return true;
> >+    });
> 
> Add a "See: ContentTouchHandler.handleEvent for 'TapUp'"  to the comment so
> it's easier to find the code that we need to work around

Will do on checkin.

> 
> >+    setTimeout(runNextTest, 0);
> 
> Is this OK for devices? Might be too short. I guess we'll find out
> 

Well, this is not really needed for the test to work but I have add it, just in case...
http://hg.mozilla.org/mobile-browser/rev/c85ebbcb23c7
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
bugspam
Assignee: nobody → 21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: