Closed Bug 599382 Opened 14 years ago Closed 14 years ago

[TEST] Add some browser-chrome test for tapping

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mfinkle, Assigned: mfinkle)

Details

Attachments

(1 file, 2 obsolete files)

Attached patch patch (obsolete) — Splinter Review
This patch adds some basic tests for checking our tapping behavior for"
* TapSingle
* TapDouble
* TabLong

I want to add some context menu checking either in this test file or a new ne at some point soon too.

For some reason I can't get "TapSingle" to work? More eyes might help. I have it "todo" for now.

Another interesting item I found testing this patch. If I log the dumpEvents function I see two "TapSingle" events happening when no events are expected. Might be a latent bug. Only happens for the "two single taps in different locations" case:

TEST-INFO | chrome://mochikit/content/browser/mobile/chrome/browser_tapping.js | Test two single taps in different locations
---- event: TapSingle (this is expected)
---- event: TapSingle (this is expected)
TEST-PASS | chrome://mochikit/content/browser/mobile/chrome/browser_tapping.js | Fired two single taps in different places, not a double tap
---- event: TapSingle (what is this?!)
---- event: TapSingle (what is this?!)
TEST-INFO | chrome://mochikit/content/browser/mobile/chrome/browser_tapping.js | Test a pan - non-tap event
Attachment #478292 - Flags: review?(mbrubeck)
Attachment #478292 - Flags: feedback?(webapps)
OS: Linux → All
Hardware: x86_64 → All
The patch is missing the new file?

(In reply to comment #0)
> Another interesting item I found testing this patch. If I log the dumpEvents
> function I see two "TapSingle" events happening when no events are expected.
> Might be a latent bug. Only happens for the "two single taps in different
> locations" case:

This was an intentional change in bug 599145.
Attached patch patch 2 (with the files) (obsolete) — Splinter Review
Oops - here are the new files.
Assignee: nobody → mark.finkle
Attachment #478292 - Attachment is obsolete: true
Attachment #478334 - Flags: review?(mbrubeck)
Attachment #478334 - Flags: feedback?(webapps)
Attachment #478292 - Flags: review?(mbrubeck)
Attachment #478292 - Flags: feedback?(webapps)
Attached patch patch 3Splinter Review
This adds some tests for context menu types too. We now test for context menu types on links, images and images nested in links.

All tests, except the "TapSingle" test (as noted above) are passing.
Attachment #478334 - Attachment is obsolete: true
Attachment #478549 - Flags: review?(mbrubeck)
Attachment #478549 - Flags: feedback?(webapps)
Attachment #478334 - Flags: review?(mbrubeck)
Attachment #478334 - Flags: feedback?(webapps)
Attachment #478549 - Flags: review?(mbrubeck) → review+
pushed:
http://hg.mozilla.org/mobile-browser/rev/cb42087d4ec4
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Attachment #478549 - Flags: feedback?(webapps)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: