Closed Bug 651107 Opened 13 years ago Closed 13 years ago

Allow waitForClipboard to check for any custom flavor

Categories

(Testing :: Mochitest, defect)

x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla6

People

(Reporter: mak, Assigned: mak)

Details

(Whiteboard: [fixed-in-places])

Attachments

(1 file, 1 obsolete file)

SimpleTest.waitForClipboard can currently only wait for text/unicode flavors, it could be more generic.
Attached patch patch v1.0 (obsolete) — Splinter Review
This should be retro-compatible (the flavor is optional and defaults to text/unicode), I'll run on Try before proceeding with review request.
Attached patch patch v1.1Splinter Review
This includes only Linux because my previous try contained a typo, and didn't want to abuse of our resources. I've run tests on Win locally though.
http://tbpl.mozilla.org/?tree=MozillaTry&rev=096889f1e1ba
Attachment #526966 - Attachment is obsolete: true
Attachment #527113 - Flags: review?(ehsan)
Comment on attachment 527113 [details] [diff] [review]
patch v1.1

Looks good to me.  You may also want to ask ted to review the SimpleTest parts...
Attachment #527113 - Flags: review?(ehsan) → review+
Comment on attachment 527113 [details] [diff] [review]
patch v1.1

ok, I think there isn't much more to review here, but let's send the request and he'll figure out if it's worth it :)
Attachment #527113 - Flags: review?(ted.mielczarek)
Comment on attachment 527113 [details] [diff] [review]
patch v1.1

We really need to move this into SpecialPowers, but this isn't really changing the situation any.
Attachment #527113 - Flags: review?(ted.mielczarek) → review+
I don't know much about SpecialPowers, is there some doc or a Wiki page to learn about it?
http://hg.mozilla.org/mozilla-central/rev/b87a0f69f78e
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: