Closed Bug 568995 Opened 15 years ago Closed 14 years ago

Update tests to use waitForClipboard

Categories

(Firefox :: General, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
Firefox 3.7a5

People

(Reporter: zpao, Assigned: zpao)

Details

Attachments

(2 files)

Apart from browser_bug556061.js which is getting fixed in bug 567870, there are 2 tests that I found which should be using waitForClipboard: browser/base/content/test/browser_bug321000.js toolkit/components/passwordmgr/test/browser/browser_passwordmgrcopypwd.js (I know Browser/General isn't exactly right... but it didn't seem worth filing multiple bugs in the right components)
update browser_bug321000.js * use waitforClipboard * also removed clearing the clipboard at the end of the test. I know it was added (bug 474081) to see if this was affecting other tests, but it looked like the verdict was that it isn't.
Assignee: nobody → paul
Status: NEW → ASSIGNED
Attachment #448147 - Flags: review?(dao)
Attachment #448147 - Flags: review?(dao) → review+
Comment on attachment 448147 [details] [diff] [review] Patch v0.1 (browser_bug321000.js) >+ waitForClipboard(kTestString, function() cbHelper.copyString(kTestString), >+ next_test, finish); nit: function () { cbHelper.copyString(kTestString); } What you wrote is short for function () { return cbHelper.copyString(kTestString); }, but you don't want to return anything. You can declare cbHelper right above this, it's not used elsewhere.
Attachment #448148 - Flags: review?(dolske) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.7a5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: